Skip to main content

Telegram Bot for Oscar shops

Project description

CI:

https://img.shields.io/travis/jlmadurga/django-oscar-telegram-bot.svg Coveralls Requirements Status

PyPI:

https://img.shields.io/pypi/v/django-oscar-telegram-bot.svg

Docs:

Documentation Status

Telegram Bot for Django-Oscar ecommerce.

Documentation

The full documentation is at https://django-oscar-telegram-bot.readthedocs.org.

This package uses django-telegram-bot, take a look to https://github.com/jlmadurga/django-telegram-bot

Quickstart

Install django-oscar-telegram-bot:

pip install django-oscar-telegram-bot

Add it to your INSTALLED_APPS:

INSTALLED_APPS = [
        ...
        'oscar_telegrambot', # this app
        'telegrambot', #  django-telegram-bot
        'rest_framework', # django-telegram-bot uses django-rest-framework
        ...
]

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', namespace="telegrambot")),

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

Features

  • Wellcome and help commands

  • Unknown command handler

  • Categories list command

  • Products list command

  • Product detail command

  • Order detail command

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install -r requirements-test.txt
(myenv) $ python runtests.py

History

0.1.0 (2016-01-26)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-oscar-telegram-bot-0.4.0.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_oscar_telegram_bot-0.4.0-py2.py3-none-any.whl (12.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file django-oscar-telegram-bot-0.4.0.tar.gz.

File metadata

File hashes

Hashes for django-oscar-telegram-bot-0.4.0.tar.gz
Algorithm Hash digest
SHA256 2540942aded654d88a49d16f94813599c3fd3cbdacff2022f377bd2baa7d6b14
MD5 c1d650fd148a7a0fe5e3c0bd7185c765
BLAKE2b-256 d1d7cbc9d0205f245ad05bc7791fafcce25191a166d4f4bc216b97f2e80f59f5

See more details on using hashes here.

File details

Details for the file django_oscar_telegram_bot-0.4.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_oscar_telegram_bot-0.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 95f17840edc17b226af7ba5848163d5f5afced42318a835c2882827222baba42
MD5 f7044d7416687dcea2c23580a54dff76
BLAKE2b-256 40837d9c52583e5a816cf20e5142da6bbc642e1af5a2538250620793cff62b9e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page