Skip to main content

Package to use Django ORM as persistence engine in Python Telegram Bot

Project description

python-telegram-bot-django-persistence

PyPI - Downloads All Contributors

Do you use python-telegram-bot with Django and want persistence without additional infrastructure? We've got you covered!

Quickstart

📥 Install package

If you are using poetry (and if not, please, consider using it 😉):

poetry add python-telegram-bot-django-persistence

Elif you are using pip, then just enter:

pip install python-telegram-bot-django-persistence

🔌 Add the app to your Django project

Then add python_telegram_bot_django_persistence into your INSTALLED_APPS in your settings file, like so:

INSTALLED_APPS = [
    ...
    "python_telegram_bot_django_persistence",
]

☢ Migrate your database

python manage migrate

🌟 Awesome! Use DjangoPersistence in python-telegram-bot

updater = Updater(bot=bot, use_context=True, persistence=DjangoPersistence())

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Alexander Shishenko

💻 📖

This project follows the all-contributors specification. Contributions of any kind welcome!

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

Built Distribution

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