Usage

Configure in settings:

TELEGRAM_BOT_COMMANDS_CONF = "oscar_telegrambot.commands"

As other django-telegram-bot app set your Bots with admin panel.

Add url to have webhook:

url(r'^telegrambot/', include('telegrambot.urls')),

To set the webhook for telegram you need ‘django.contrib.sites’ installed, SITE_ID configured in settings and with it correct value in the DB.

You can take a look to a demo repo using the sandbox in https://github.com/jlmadurga/django-oscar-telegram-bot-demo. This demo is already installed in http://django-oscar-telegram-bot-demo.herokuapp.com/en-gb/ and you can test the bot https://telegram.me/djangooscartelegrambotdemo_bot

You can override templates of the messages. Just add new templates for texts and keyboards in your_template_dir/telegrambot/messages/

Screenshots from demo

Wellcome:

_images/wellcome.png

List of commands:

_images/list_commands.png

List of categories and keyboard to select the category:

_images/categories.png

Products of a category. Select the product in keyboard:

_images/products.png

Product detail:

_images/product_detail.png

Order detail providing order number:

_images/order_detail.png