This is a template for telegram bot on aiogram3 using asynchronous database and redis
git clone git@github.com:nazar220160/AiogramTemplate.git
pip install -r requirements.txt
alembic revision --autogenerate -m 'initial' && alembic upgrade head
pybabel init -i src/bot/common/locales/messages.pot -d src/bot/common/locales -D messages -l en
Extract text/update/compile:
pybabel extract --input-dirs=src -o src/bot/common/locales/messages.pot
pybabel update -d src/bot/common/locales -D messages -i src/bot/common/locales/messages.pot
pybabel compile -d src/bot/common/locales -D messages
python -m app
python3 -m app
docker-compose run app alembic revision --autogenerate
docker-compose run app alembic upgrade head
docker-compose build && docker-compose run --rm migrate && docker-compose up -d
- First of all rename your
.env_example
to.env
andapp/.env_example
toapp/.env