From 994c874d5bf5e75419a323fb5bd18e4ba02f3845 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Sat, 6 Jul 2024 12:58:57 +0800 Subject: [PATCH] :bug: Fix wish log keyboard cannot dismiss --- plugins/genshin/wish_log.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/plugins/genshin/wish_log.py b/plugins/genshin/wish_log.py index 981d9a7c..f3aef331 100644 --- a/plugins/genshin/wish_log.py +++ b/plugins/genshin/wish_log.py @@ -257,11 +257,8 @@ class WishLogPlugin(Plugin.Conversation): reply = await message.reply_text(WAITING, reply_markup=ReplyKeyboardRemove()) await message.reply_chat_action(ChatAction.TYPING) text = await self._refresh_user_data(user, player_id, authkey=authkey) - try: - await reply.delete() - except BadRequest: - pass - await message.reply_text(text) + self.add_delete_message_job(reply, delay=1) + await message.reply_text(text, reply_markup=ReplyKeyboardRemove()) return ConversationHandler.END @conversation.entry_point