From f0fdf8533f069a12ecfc3fa94fd86cb98865c2bb Mon Sep 17 00:00:00 2001 From: Verum Date: Tue, 25 Feb 2025 17:05:50 +0700 Subject: [PATCH] =?UTF-8?q?1.1.6=20=D0=A3=D0=BB=D1=83=D1=87=D1=88=D0=B5?= =?UTF-8?q?=D0=BD=20=D0=B2=D0=B0=D0=BB=D0=B8=D0=B4=D0=B0=D1=82=D0=BE=D1=80?= =?UTF-8?q?=20username=20=D0=B8=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20=D0=B2=D0=B0=D0=BB=D0=B8=D0=B4=D0=B0=D1=82=D0=BE?= =?UTF-8?q?=D1=80=20=D0=BD=D0=BE=D1=80=D0=BC=D0=B0=D0=BB=D1=8C=D0=BD=D0=BE?= =?UTF-8?q?=D0=B3=D0=BE=20=D0=B2=D0=B8=D0=B4=D0=B0=20=D1=81=D0=BB=D0=BE?= =?UTF-8?q?=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BotCode/routers/commands/user_cmd/start_cmd.py | 1 - BotLibrary/samples/user_cmd_class.py | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/BotCode/routers/commands/user_cmd/start_cmd.py b/BotCode/routers/commands/user_cmd/start_cmd.py index 62e20bd..ae79239 100644 --- a/BotCode/routers/commands/user_cmd/start_cmd.py +++ b/BotCode/routers/commands/user_cmd/start_cmd.py @@ -17,6 +17,5 @@ start_cmd = CommandHandler( path_to_media=[ "ProjectsFiles/media/Banners/start_banner.jpg", ], - tg_links=False, text_msg="Привет! Вот группа фото!", ) diff --git a/BotLibrary/samples/user_cmd_class.py b/BotLibrary/samples/user_cmd_class.py index 349c7e5..49be277 100644 --- a/BotLibrary/samples/user_cmd_class.py +++ b/BotLibrary/samples/user_cmd_class.py @@ -8,7 +8,6 @@ from aiogram.types import InputMediaPhoto from BotLibrary import valid_url from ProjectsFiles import BotVar -from BotLibrary.validators import username from BotLibrary.loggers import Logs # Настройки экспорта в модули @@ -71,7 +70,7 @@ class CommandHandler: if self.tg_links: self.text_msg = self.text_msg.replace("", str(message.from_user.id)) - Logs.info(log_type=self.log_type, user=username(message), text=f"использовал(а) команду /{self.name}") + Logs.info(log_type=self.log_type, text=f"использовал(а) команду /{self.name}") if self.media == "message": await message.reply(