From 9261f4651641efcc91c107877e9ab085d1747c9f Mon Sep 17 00:00:00 2001 From: Verum Date: Wed, 26 Feb 2025 03:39:50 +0700 Subject: [PATCH] =?UTF-8?q?1.1.7=20=D1=8F=20=D0=B5=D0=B1=D0=B0=D0=BB=20?= =?UTF-8?q?=D0=B1=D0=BB=D1=8F=D1=82=D1=8C=20=D0=BF=D0=B8=D1=81=D0=B0=D1=82?= =?UTF-8?q?=D1=8C=20=D0=BA=D0=BE=D0=BC=D0=B8=D1=82=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/PRIMOWORLD.iml | 5 ++++- BotCode/__init__.py | 1 + BotCode/utils/__init__.py | 11 +++++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 BotCode/utils/__init__.py 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") + +# Идет самым последним, если другие роутеры не сработали +