Files
PrimoPearlBot/BotCode/routers/common/__init__.py
2024-12-18 12:23:00 +07:00

21 lines
721 B
Python
Raw Permalink 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/common/__init__.py
# Инициализация пакета common, для работы со всеми сообщениями
from aiogram import Router
from .messages import router as common_message_router
from .phrase import router as phrase_message_router
# Объявление роутера и настройка экспорта модулей
__all__ = ("router",)
router = Router(name="users_head_router")
# Список подключаемых роутеров сверху-вниз
router.include_routers(
phrase_message_router,
)
# Идет самым последним, если другие роутеры не сработали
router.include_router(common_message_router)