From c867e1e3af048720380ea93ebc2e31690f24cb90 Mon Sep 17 00:00:00 2001 From: yshtcn Date: Mon, 25 Sep 2023 20:26:22 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E4=BF=AE=E6=AD=A3bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Diary Assistant.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Diary Assistant.py b/Diary Assistant.py index 28702c4..e26e2d9 100644 --- a/Diary Assistant.py +++ b/Diary Assistant.py @@ -206,10 +206,11 @@ def main(): blacklist.append(unique_id) elif message_text.lower() == "/removelast": if user_data[chat_id_str]: - send_message(chat_id, "#操作提醒\n---\n```\n{main_text}\n```\n---\n这条信息已成功删除。) + send_message(chat_id, f"#操作提醒\n---\n这条信息已成功删除。") user_data[chat_id_str].pop() else: send_message(chat_id, "#操作提醒\n---\n没有消息可以删除。") + blacklist.append(unique_id) else: send_message(chat_id_str, f"{message_text_with_datetime}") if chat_id_str not in user_data: