1.加入了撤回指令

This commit is contained in:
liuwei
2025-02-17 14:16:10 +08:00
parent af2ef96c3e
commit 8f820761ba
3 changed files with 67 additions and 12 deletions

View File

@@ -29,7 +29,7 @@ def archive_message(group_id, timestamp_str, sender, content, message_type, atta
# 提交事务
connection.commit()
print("Message archived successfully.")
print(f"Message archived successfully: {content}")
except Exception as e:
print(f"Error archiving message: {e}")
@@ -79,7 +79,7 @@ def get_messages(group_id, all_contacts: dict):
# 将列表中的字符串连接成一个最终的结果
result_str = "\n".join(result)
print(result_str) # 输出带逗号的字符串
# print(result_str) # 输出带逗号的字符串
return result_str
finally: