From 5a0b4dfd50f782a4a06f8e9b7492594d142c4b37 Mon Sep 17 00:00:00 2001 From: Mehavoid <63477090+Mehavoid@users.noreply.github.com> Date: Wed, 22 Mar 2023 14:40:48 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20=D0=BE=D1=82=D1=81=D1=83=D1=82=D1=81=D1=82=D0=B2?= =?UTF-8?q?=D1=83=D1=8E=D1=89=D0=B8=D0=B9=20=D0=B0=D1=80=D0=B3=D1=83=D0=BC?= =?UTF-8?q?=D0=B5=D0=BD=D1=82=20`l10n`=20(#11)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #10 --- bot/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/__main__.py b/bot/__main__.py index 043625b..259557f 100644 --- a/bot/__main__.py +++ b/bot/__main__.py @@ -37,7 +37,7 @@ async def main(): bot.session.api = TelegramAPIServer.from_base(config.custom_bot_api, is_local=True) # Регистрация мидлварей - dp.message.middleware(L10nMiddleware(l10n)) + dp.update.middleware(L10nMiddleware(l10n)) # Регистрация /-команд в интерфейсе await set_bot_commands(bot)