Исправлен баг с айди #3

Merged
Whyverum merged 1 commits from origin into master 2024-12-23 20:24:40 +03:00
Showing only changes of commit 084a96fad8 - Show all commits

View File

@@ -12,9 +12,10 @@ log_type = "Type_message"
# Проверка на тип чата # Проверка на тип чата
def types_chat(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": if message.chat.type == "private":
file_path = f"{ProjectPath.private_message}/{chat_id}.txt" file_path = f"{ProjectPath.private_message}/{user_id}.txt"
else: else:
file_path = f"{ProjectPath.group_message}/{chat_id}.txt" file_path = f"{ProjectPath.group_message}/{chat_id}.txt"
return file_path return file_path