Skip to content

Commit 7e2669a

Browse files
committed
Simplified routers inclusion
1 parent 1763b9f commit 7e2669a

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

bot/__main__.py

+7-5
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,13 @@ async def main():
3333
dp.update.outer_middleware(UnhandledUpdatesLoggerMiddleware())
3434

3535
# Register handlers
36-
dp.include_router(commands.router)
37-
dp.include_router(pm.router)
38-
dp.include_router(add_or_migrate.router)
39-
dp.include_router(inline_mode.router)
40-
dp.include_router(errors.router)
36+
dp.include_routers(
37+
commands.router,
38+
pm.router,
39+
add_or_migrate.router,
40+
inline_mode.router,
41+
errors.router
42+
)
4143

4244
# Set bot commands in UI
4345
await set_bot_commands(bot, dispenser)

0 commit comments

Comments
 (0)