From 084a96fad8fa0efd27ce1332ac7822d963d7c5e6 Mon Sep 17 00:00:00 2001 From: Whyverum Date: Mon, 23 Dec 2024 22:22:34 +0700 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20=D0=B1=D0=B0=D0=B3=20=D1=81=20=D0=B0=D0=B9=D0=B4?= =?UTF-8?q?=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BotLibrary/analitics/types_msg.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/BotLibrary/analitics/types_msg.py b/BotLibrary/analitics/types_msg.py index 0e904b8..8b55447 100644 --- a/BotLibrary/analitics/types_msg.py +++ b/BotLibrary/analitics/types_msg.py @@ -12,9 +12,10 @@ log_type = "Type_message" # Проверка на тип чата def types_chat(message): - chat_id = find_imp_id(message.from_user.id) + user_id = find_imp_id(message.from_user.id) + chat_id = find_imp_id(message.chat.id) if message.chat.type == "private": - file_path = f"{ProjectPath.private_message}/{chat_id}.txt" + file_path = f"{ProjectPath.private_message}/{user_id}.txt" else: file_path = f"{ProjectPath.group_message}/{chat_id}.txt" return file_path -- 2.49.1