🐛 Fix wish log keyboard cannot dismiss

This commit is contained in:
xtaodada 2024-07-06 12:58:57 +08:00
parent 3cc4638282
commit 994c874d5b
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -257,11 +257,8 @@ class WishLogPlugin(Plugin.Conversation):
reply = await message.reply_text(WAITING, reply_markup=ReplyKeyboardRemove()) reply = await message.reply_text(WAITING, reply_markup=ReplyKeyboardRemove())
await message.reply_chat_action(ChatAction.TYPING) await message.reply_chat_action(ChatAction.TYPING)
text = await self._refresh_user_data(user, player_id, authkey=authkey) text = await self._refresh_user_data(user, player_id, authkey=authkey)
try: self.add_delete_message_job(reply, delay=1)
await reply.delete() await message.reply_text(text, reply_markup=ReplyKeyboardRemove())
except BadRequest:
pass
await message.reply_text(text)
return ConversationHandler.END return ConversationHandler.END
@conversation.entry_point @conversation.entry_point