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: """