Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jlmadurga/django-oscar-telegram-bot-demo
Django Oscar app demo using django-oscar-telegram-bot app. This uses Oscar sandbox site demo.
https://github.com/jlmadurga/django-oscar-telegram-bot-demo
Last synced: about 1 month ago
JSON representation
Django Oscar app demo using django-oscar-telegram-bot app. This uses Oscar sandbox site demo.
- Host: GitHub
- URL: https://github.com/jlmadurga/django-oscar-telegram-bot-demo
- Owner: jlmadurga
- Created: 2016-01-26T15:46:21.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-09T17:58:53.000Z (almost 9 years ago)
- Last Synced: 2023-04-03T15:32:52.047Z (almost 2 years ago)
- Language: Python
- Size: 3.2 MB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
=============================
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
.. image:: https://raw.github.com/jlmadurga/django-oscar-telegram-bot-demo/master/imgs/wellcome.png
* List of commands
.. image:: https://raw.github.com/jlmadurga/django-oscar-telegram-bot-demo/master/imgs/list_commands.png
* Categories list
.. image:: https://raw.github.com/jlmadurga/django-oscar-telegram-bot-demo/master/imgs/categories.png
* Select product from list:
.. image:: https://raw.github.com/jlmadurga/django-oscar-telegram-bot-demo/master/imgs/products.png
* Product detail:
.. image:: https://raw.github.com/jlmadurga/django-oscar-telegram-bot-demo/master/imgs/product_detail.png
* Order detail:
.. image:: https://raw.github.com/jlmadurga/django-oscar-telegram-bot-demo/master/imgs/order_detail.png