From 907a3133688fd38b8b5285ecf9cf7c1f9a34d107 Mon Sep 17 00:00:00 2001 From: yshtcn Date: Mon, 25 Sep 2023 20:27:32 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E6=9B=B4=E6=AD=A3=E6=96=87=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Diary Assistant.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Diary Assistant.py b/Diary Assistant.py index e26e2d9..1fecde5 100644 --- a/Diary Assistant.py +++ b/Diary Assistant.py @@ -206,8 +206,8 @@ def main(): blacklist.append(unique_id) elif message_text.lower() == "/removelast": if user_data[chat_id_str]: - send_message(chat_id, f"#操作提醒\n---\n这条信息已成功删除。") - user_data[chat_id_str].pop() + user_data[chat_id_str].pop() + send_message(chat_id, f"#操作提醒\n---\n最后一条信息已成功删除。") else: send_message(chat_id, "#操作提醒\n---\n没有消息可以删除。") blacklist.append(unique_id)