Skip to main content

Telegram Django Bot Bridge

Project description

This library provides a Python interface for creating Telegram Bots. The library combines Django and Python-Telegram-Bot. and provides extra powerful utilities based on this libraries.

By simple combining of Django and Python-Telegram-Bot you will get next opportunities:

Python-Telegram-Bot:

  • Python Interface for communication with Telegram API;

  • Web-sevice for get updates from telegram;

Django:

  • Django ORM (communication with Database);

  • Administration panel for management.

Telegram Django Bot Bridge provides next special opportunities:

  • using Django Forms;

  • using Viewsets (typical action with model (create, update, list, delete));

  • using Django localization;

  • using function routing like urls routing in Django;

  • creating tests;

  • creating general menu items with no-coding (through Django Admin Panel);

  • extra high-level Bot functions, such as wrapper for send delayed (or scheduled) messages;

  • collecting stats from user actions in the bot;

  • creating user triggers;

  • commonly used utilities.

Install

$ pip install telergam_django_bot

Quick start

  1. Add “telegram_django_bot” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'telegram_django_bot',
    ]
  2. Run python manage.py migrate to create the polls models.

  3. Add TELEGRAM_TOKEN, TELEGRAM_TEST_USER_IDS, TELEGRAM_ROOT_UTRLCONF in settings for full use all library advantages.

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

telegram_django_bot-0.0.9.tar.gz (26.1 kB view hashes)

Uploaded Source

Built Distribution

telegram_django_bot-0.0.9-py3-none-any.whl (29.5 kB view hashes)

Uploaded Python 3

Supported by

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