- Built with aiogram
- Database management with SQLAlchemy and asyncpg
- Database migrations with Alembic
- Data storage for FSM with redis-py
- Python 3.12+
- Poetry
- Docker
Via Docker
- Set up environment variables (.env)
- Rename .env.example to .env
- Configure it
- Build and run docker container
docker-compose up --build -d
- Set up environment variables (.env)
- Rename .env.example to .env
- Configure it
- Install the dependencies:
poetry install
- Run database migrations
poetry run alembic upgrade head
- Configure .service file
- Start service
systemctl --now enable tgbot.service