Files
PrimoPearlBot/BotCode/routers/commands/user_cmd/__init__.py

28 lines
916 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/commands/user_cmd/__init__.py
# Инициализация пакета user_cmd, для работы с командами для пользователей
from aiogram import Router
from .start_cmd import router as start_router
from .help_cmd import router as help_router
from .more_cmd import router as more_router
from .exit_cmd import router as exit_router
from .start_time_cmd import router as start_time_router
# Объявление роутера и настройка экспорта модулей
__all__ = ("router",)
router = Router(name="user_cmd_router")
# Список подключаемых роутеров сверху-вниз
router.include_routers(
start_router,
help_router,
more_router,
exit_router,
)
# Идет самым последним, если другие роутеры не сработали
router.include_router(start_time_router)