Warning
Tested on aiogram=3.3.0, code may failed with another version as it uses tricky things
Each user action will be displayed in a log stream with the appropriate type (Message, CallbackQuery and so on).
""" | |
Check Telegram WebAppData in Python | |
Based on https://core.telegram.org/widgets/login#checking-authorization | |
""" | |
import hashlib | |
import hmac | |
import json |
You don't need to change alembic.ini
to set up a database connection.
Alembic will derive database connection uri from settings.yaml
(or any yaml which you specify in SETTINGS_PATH
environment variable).
Example of settings.yaml
: