Skip to main content

django-oscar-telegram-bot

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 list&detail command only when logged

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.

Metadata

Release files for django-oscar-telegram-bot 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-oscar-telegram-bot 0.5.0
File Size Uploaded Provenance
django-oscar-telegram-bot-0.5.0.tar.gz 8.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for django-oscar-telegram-bot 0.5.0
File Interpreter ABI Platform
django_oscar_telegram_bot-0.5.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 21.2 kB

Release files / django-oscar-telegram-bot-0.5.0.tar.gz

Download URL django-oscar-telegram-bot-0.5.0.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f9815151ea604b7190d781ba3ea2ddef7ebe614544645797ac987450af905a44
BLAKE2b-256 checksum
How to use checksums
793b8ce820f2b123e5a98200e8eff2c38db5e2968bf3029a29ad11ba2604216c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django_oscar_telegram_bot-0.5.0-py2.py3-none-any.whl

Download URL django_oscar_telegram_bot-0.5.0-py2.py3-none-any.whl
Size 12.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
a80bc21cfda2522c8cfeee1902e20f8d2a24f6722a782c2ab3640f08448277d4
BLAKE2b-256 checksum
How to use checksums
5e8c7fe0cbbb08f5acc7d7479a3f5d3aef50ce7078e652f8c772141746449c6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-oscar-telegram-bot 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page