Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
noes14155 committed Sep 22, 2023
2 parents 5361e16 + cfd0408 commit 6a1f424
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bot_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,14 @@ async def chat(self, call, waiting_id, bot, process_prompt = ''):
chunk = 0
user_id = call.from_user.id
markup = self.generate_keyboard('text_func')
try:
await bot.edit_message_reply_markup(chat_id=call.chat.id,message_id=self.last_msg_ids[user_id],reply_markup=None) if user_id in self.last_msg_ids else None
except:
pass
self.last_call[user_id] = call
self.last_msg_ids[user_id] = waiting_id
user_id = call.from_user.id
markup = self.generate_keyboard('text_func')
self.cancel_flag = False
try:
await bot.edit_message_reply_markup(chat_id=call.chat.id,message_id=self.last_msg_ids[user_id],reply_markup=None) if user_id in self.last_msg_ids else None
Expand Down

0 comments on commit 6a1f424

Please sign in to comment.