1
Fork 0
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:
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:
break
except TimedOut:
pass
time.sleep(1)
except Exception:
try:
bot.answer_callback_query(update.callback_query.id,