This commit is contained in:
2025-09-08 16:56:34 +07:00
parent 0f05fc8455
commit a92d130502
15 changed files with 420 additions and 358 deletions

View File

@@ -13,7 +13,7 @@ from aiogram.types import (
)
from aiogram.utils.i18n import I18n, SimpleI18nMiddleware
from configs.config import BotSettings, BotEdit, Webhook, Permission
from configs.config import BotSettings, BotEdit, Webhook
from middleware.loggers import log
__all__ = ("dp", "bot", "BotInfo", "i18n")
@@ -193,7 +193,7 @@ class BotInfo:
@classmethod
@log(level="INFO", log_type="START", text="Процесс запуска бота!")
async def setup(cls, bots: Bot = bot, perm: bool = Permission.BOT_EDIT):
async def setup(cls, bots: Bot = bot, perm: bool = BotEdit.ALLOW):
await cls.webhook(bots=bots)
await cls.info(bots=bots)
if perm: