From 1bb1cc60fbd7259b541e910ac0d30380cc2596aa Mon Sep 17 00:00:00 2001 From: Whyverum Date: Mon, 23 Dec 2024 22:05:40 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D1=87=D0=B8=D0=BA=20=D0=BA=D0=BE=D0=BC=D0=B0=D0=BD=D0=B4=D1=8B?= =?UTF-8?q?=20/send=20(=D0=B2=20=D1=80=D0=B0=D0=B7=D1=80=D0=B0=D0=B1=D0=BE?= =?UTF-8?q?=D1=82=D0=BA=D0=B5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Test/commands/send_to_user.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Test/commands/send_to_user.py b/Test/commands/send_to_user.py index cade07b..9eb0b2f 100644 --- a/Test/commands/send_to_user.py +++ b/Test/commands/send_to_user.py @@ -12,10 +12,10 @@ command_text = "Send" # Обработчик команды /send для отправки сообщения определенному пользователю (в разработке) -@router.message(F.from_user.id.in_(ListId.important_ids), +@router.message(F.from_user.id.in_(ListId.important), Command("send", "отправить", "отправ", "s", "ыутв", "jnghfdbnm", "jnghfd", prefix=BotEdit.prefixs, ignore_case=True)) -async def send_message(message: types.Message): +async def send_message(message: types_msg.Message): try: if message.chat.id in ListId.adm_list_id: text = f"использовал(а) команду /{command_text.lower()}" @@ -37,7 +37,7 @@ async def send_message(message: types.Message): await bot.send_message(chat_id=user_id, text=text_send) # Логирование - user_id = find_people_id(user_id) + user_id = find_imp_id(user_id) await cmd_logginger(message, command_text, text) # Логирование и отчет об отправке