It is a template you can use for creating telegram bot with aiogram 3. It supports internationalization
- 💪 Aiogram (v3)
- 😄 i18n
- 🤹🏽 Loguru
- Python
- Make
git clone git@github.com:lleballex/aiogram-template.git
cd aiogram-template
python3 -m venv env
. env/bin/activate
pip install -r requirements.txt
git clone git@github.com:lleballex/aiogram-template.git
cd aiogram-template
python -m venv env
env\scripts\activate
pip install -r requirements.txt
python src/bot.py
Just create new file in src/handlers folder or its subfolder
from aiogram import Router
my_router = Router()
from .my_file import my_router
routers = [my_router]
This template uses i18n. So wrap your messages in aiogram.utils.i18n.gettext
to make it translatable
More information you can find here
make i18n-extract
mkdir locales
pybabel init -i locales/messages.pot -d locales -D messages -l en
make i18n-compile
make i18n-update