From 2e185952cf4d0255df5c51ce9f1695c1ee693ca9 Mon Sep 17 00:00:00 2001 From: latan Date: Thu, 10 Aug 2023 10:49:34 +0300 Subject: [PATCH] Refactor: Clean up code formatting for consistency --- examples/multi_file_bot/bot.py | 1 - examples/multi_file_bot/handlers/__init__.py | 3 +-- examples/multi_file_bot/handlers/echo.py | 1 + 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/multi_file_bot/bot.py b/examples/multi_file_bot/bot.py index f1ac7607..421198cc 100644 --- a/examples/multi_file_bot/bot.py +++ b/examples/multi_file_bot/bot.py @@ -16,7 +16,6 @@ async def main() -> None: dp.include_routers( handlers.start.start_router, handlers.echo.echo_router, - ) # Initialize Bot instance with a default parse mode which will be passed to all API calls diff --git a/examples/multi_file_bot/handlers/__init__.py b/examples/multi_file_bot/handlers/__init__.py index aa07a69b..46f9d586 100644 --- a/examples/multi_file_bot/handlers/__init__.py +++ b/examples/multi_file_bot/handlers/__init__.py @@ -1,2 +1 @@ -from . import start -from . import echo +from . import echo, start diff --git a/examples/multi_file_bot/handlers/echo.py b/examples/multi_file_bot/handlers/echo.py index 5b6959ab..4961262c 100644 --- a/examples/multi_file_bot/handlers/echo.py +++ b/examples/multi_file_bot/handlers/echo.py @@ -5,6 +5,7 @@ from aiogram.types import Message # For each module with handlers we can create a separate router. echo_router = Router() + @echo_router.message() async def echo_handler(message: Message) -> None: """