Files
PrimoWorldsBot/BotCode/routers/__init__.py

21 lines
706 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# BotCode/routers/__init__.py
# Инициализация пакета routers, для работы с асинхронными обработчиками
from aiogram import Router
from .commands import router as commands_head_router
from .common import router as common_head_router
from .handlers import router as handlers_head_router
# Объявление главного роутера и настройка экспорта модулей
__all__ = ("router",)
router = Router(name="all_routers")
# Список подключаемых роутеров сверху-вниз
router.include_routers(
handlers_head_router,
commands_head_router,
)
router.include_routers(common_head_router)