- Setup poetry and install requirements (
poetry install
) - Rename
.env.dist
to.env
and configure it - Run database migrations with
make migrate
command - Before running the bot (
make run
), make sure you are in a virtual environment by running the commandpoetry shell
. - Optional: configure
telegram-bot.service
(» Read more)
Make migration script:
make migration message=MESSAGE_WHAT_THE_MIGRATION_DOES
Run migrations:
make migrate
- Parse new used localization keys to update translations files
(
make i18n locale=TRANSLATION_LOCALE
) - Write new translations in
.ftl
files bylang/TRANSLATION_LOCALE
- Restart the bot
- Aiogram 3.x (framework for creating Telegram bots)
- Docker (developing applications in containers)
- Docker Compose (tool for defining and running multi-tier applications)
- PostgreSQL (database)
- SQLAlchemy (working with database from Python)
- Alembic (lightweight database migration tool)
- Redis (in-memory data storage for FSM and caching)
- Project Fluent (modern localization system)