Package to use Django ORM as persistence engine in Python Telegram Bot
Project description
python-telegram-bot-django-persistence
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
Close
Hashes for python-telegram-bot-django-persistence-0.1.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 713e75c994c5f608b30bab5f2c35dc123c1926685129776cf646927bccc38a04 |
|
MD5 | 98382a87f517c5ee6a7531c02b096f8b |
|
BLAKE2b-256 | 181fb19d3cc92efd900103cce5e7b8d4b9afdf394a1b2ed2a7da64f1209dcc99 |
Close
Hashes for python_telegram_bot_django_persistence-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec674d6efc49a9bda61e7d775023be568c4126d791db82c9de64eb612e114223 |
|
MD5 | a66c7228e61b093cb2d46677625cf0d2 |
|
BLAKE2b-256 | fa6faf21df32264dfc81267bdc941e700eea35bdc052a83fc5c7b79653e230fe |