Skip to content

Django Oscar app demo using django-oscar-telegram-bot app. This uses Oscar sandbox site demo.

Notifications You must be signed in to change notification settings

jlmadurga/django-oscar-telegram-bot-demo

Repository files navigation

django-oscar-telegram-bot-demo

Django Oscar app demo using django-oscar-telegram-bot app. This uses Oscar sandbox site demo.

Installation

The repo is setup for heroku but. So you only need to clone it, create heroku app and push it.

To get that token you need to create a Telegram bot https://core.telegram.org/bots.

When you have your django-app installed migrate DB:

$ python manage.py migrate

Create sandbox data:

$ make build_sandbox

Create super user:

$ python manage.py createsuperuser

To get that token you need to create a Telegram bot https://core.telegram.org/bots. After creating a bot in Telegram Platform, create at least one bot with django admin. Token is the only required field. You may need to provided public key certificate for your server. https://core.telegram.org/bots/self-signed Heroku has https and ssl by default so it is a good option if you dont want to deal with that.

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 check it using already created bot https://telegram.me/djangooscartelegrambotdemo_bot and the web app with the demo already installed https://django-oscar-telegram-bot-demo.herokuapp.com (Some product list do not response because Telegram raises Message too long)

Oscar telegram bot

Some screenshots comparing web app and telegram bot:

  • Wellcome

https://raw.github.com/jlmadurga/django-oscar-telegram-bot-demo/master/imgs/wellcome.png

  • List of commands

https://raw.github.com/jlmadurga/django-oscar-telegram-bot-demo/master/imgs/list_commands.png

  • Categories list

https://raw.github.com/jlmadurga/django-oscar-telegram-bot-demo/master/imgs/categories.png

  • Select product from list:

https://raw.github.com/jlmadurga/django-oscar-telegram-bot-demo/master/imgs/products.png

  • Product detail:

https://raw.github.com/jlmadurga/django-oscar-telegram-bot-demo/master/imgs/product_detail.png

  • Order detail:

https://raw.github.com/jlmadurga/django-oscar-telegram-bot-demo/master/imgs/order_detail.png

About

Django Oscar app demo using django-oscar-telegram-bot app. This uses Oscar sandbox site demo.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published