- Python 3.11+
- Poetry
- PostgreSQL or MySQL
make installmake install-dev- Copy file
.env.exampleand rename it to .env - Open it and configure it
- If you used Redis find
REDIS_USEand set True
# Redis settings
REDIS_USE=True
poetry add asyncpgpoetry add asyncmyDefault database - PostgreSQL. You can change this in .env DB_USED
For migrations using Alembic
make migration message=messagemake migratemake startmake docker-run- Flexible choice between
PostgreSQLandMySQL - In
bot/middlewares/there are already several middlewares in the folder(ThrottlingMiddleware) - In
bot/filtersthere are already several middlewares in the folder(IsAdmin) DailyRotatingFileHandler- logs are written to a file with the current date from 00:00 to 23:59 and stored in thelogsfolderTelegramHandler- logs are sent to the telegram chat
- Aiogram 3.x (Telegram bot framework)
- SQLAlchemy (working with database from Python)
- Alembic (lightweight database migration tool)
- Redis (Optional)
- Docker (Optional)