donBarbos / telegram-bot-template

🤖 Template for telegram bot using postgres, pgbouncer, redis, docker, amplitude, prometheus, grafana, CI with admin panel
GNU Lesser General Public License v3.0
278 stars 51 forks source link

Update bot/middlewares/__init__.py #240

Closed maxktz closed 5 months ago

maxktz commented 5 months ago

It fixed bug "I18n context is not set" for me

and aiogram recommends this method to setup I18nMiddleware

https://docs.aiogram.dev/en/dev-3.x/utils/i18n.html#aiogram.utils.i18n.middleware.I18nMiddleware.setup