mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
Don't flood telegram with edit message requests
This commit is contained in:
parent
9e32ecbac4
commit
a9b26008d3
1 changed files with 1 additions and 1 deletions
|
@ -501,7 +501,7 @@ def on_callback_query(bot: telegram.Bot, update: telegram.Update):
|
|||
except BadRequest:
|
||||
break
|
||||
except TimedOut:
|
||||
pass
|
||||
time.sleep(1)
|
||||
except Exception:
|
||||
try:
|
||||
bot.answer_callback_query(update.callback_query.id,
|
||||
|
|
Loading…
Reference in a new issue