diff --git a/.idea/PRIMOWORLD.iml b/.idea/PRIMOWORLD.iml index 7594385..4dbc497 100644 --- a/.idea/PRIMOWORLD.iml +++ b/.idea/PRIMOWORLD.iml @@ -4,7 +4,7 @@ - + @@ -19,6 +19,8 @@ + + @@ -29,6 +31,7 @@ diff --git a/BotCode/__init__.py b/BotCode/__init__.py index bb99a36..f8dada6 100644 --- a/BotCode/__init__.py +++ b/BotCode/__init__.py @@ -5,6 +5,7 @@ from aiogram import Router from .routers import router as all_routers from .inline import * from .keyboards import * +from .utils import * # Объявление главного роутера router = Router(name="main_router") diff --git a/BotCode/utils/__init__.py b/BotCode/utils/__init__.py new file mode 100644 index 0000000..37236b5 --- /dev/null +++ b/BotCode/utils/__init__.py @@ -0,0 +1,11 @@ +# BotCode/routers/utils/__init__.py +# Инициализация пакета utils, для работы с механиками + +from aiogram import Router + +# Объявление роутера и настройка экспорта модулей +__all__ = ("router",) +router = Router(name="utils_head_router") + +# Идет самым последним, если другие роутеры не сработали +