mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-25 01:29:42 +00:00
🐛 Fix wish log keyboard cannot dismiss
This commit is contained in:
parent
3cc4638282
commit
994c874d5b
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user