- Notifications
You must be signed in to change notification settings - Fork6
Package to use Django ORM as persistence engine in Python Telegram Bot
License
GamePad64/python-telegram-bot-django-persistence
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Do you usepython-telegram-bot oraiogram with Djangoand want storing FSM info without additional infrastructure?
We've got you covered!
Originally, this package supported only PTB, but we added aiogram, because it is awesome!
If you are usingpoetry (and if not, please, consider using it 😉):
# For python-telegram-botpoetry add"python-telegram-bot-django-persistence[ptb]"# For aiogrampoetry add"python-telegram-bot-django-persistence[aiogram]"
Elif you are usingpip
, then just enter:
pip install python-telegram-bot-django-persistence
Then addpython_telegram_bot_django_persistence
into yourINSTALLED_APPS
in your settings file, like so:
INSTALLED_APPS= [ ..."python_telegram_bot_django_persistence",# For python-telegram-bot"aiogram_djpersistence",# For aiogram]
python manage migrate
updater=Updater(bot=bot,use_context=True,persistence=DjangoPersistence())
dp=Dispatcher(storage=DjangoStorage())
Thanks goes to these wonderful people (emoji key):
Alexander Shishenko 💻📖 | Raman Hutkovich 💻 |
This project follows theall-contributors specification. Contributions of any kind welcome!
About
Package to use Django ORM as persistence engine in Python Telegram Bot
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors5
Uh oh!
There was an error while loading.Please reload this page.