1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Don't flood telegram with edit message requests

This commit is contained in:
Steffo 2019-03-05 10:20:51 +01:00
parent 9e32ecbac4
commit a9b26008d3

View file

@ -501,7 +501,7 @@ def on_callback_query(bot: telegram.Bot, update: telegram.Update):
except BadRequest: except BadRequest:
break break
except TimedOut: except TimedOut:
pass time.sleep(1)
except Exception: except Exception:
try: try:
bot.answer_callback_query(update.callback_query.id, bot.answer_callback_query(update.callback_query.id,