From 70becfc32ec98084067686bd456971a4cb76082c Mon Sep 17 00:00:00 2001 From: Igor Tolmachov Date: Sat, 3 Dec 2022 02:03:05 +0900 Subject: Beta 2.0 --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main.py') diff --git a/main.py b/main.py index 0559edc..99e84ea 100644 --- a/main.py +++ b/main.py @@ -6,7 +6,7 @@ from aiogram import types as t logging.basicConfig(level=logging.INFO) -async def on_start(dp: Dispatcher): +async def on_start(dp: Dispatcher) -> None: from shared.commands import commands for scope, cmd in commands.items(): @@ -18,6 +18,7 @@ if __name__ == "__main__": import handlers from shared.instances import dp + dp.middleware.setup(handlers.middleware.MessageMiddleware()) executor.start_polling( dp, allowed_updates=t.AllowedUpdates.all(), -- cgit v1.2.3