1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-24 03:54:20 +00:00

Fix ROYALNET-AE (Matchmaking timed out)

This commit is contained in:
Steffo 2019-02-21 01:36:36 +01:00
parent c9d614421e
commit 8a0d577a3d

View file

@ -475,13 +475,17 @@ def on_callback_query(bot: telegram.Bot, update: telegram.Update):
inline_keyboard = IKMarkup([([IKButton(strings.MATCHMAKING.BUTTONS[key], callback_data=key)]) for key in strings.MATCHMAKING.BUTTONS]) inline_keyboard = IKMarkup([([IKButton(strings.MATCHMAKING.BUTTONS[key], callback_data=key)]) for key in strings.MATCHMAKING.BUTTONS])
else: else:
inline_keyboard = None inline_keyboard = None
while True:
try: try:
bot.edit_message_text(message_id=update.callback_query.message.message_id, bot.edit_message_text(message_id=update.callback_query.message.message_id,
chat_id=config["Telegram"]["announcement_group"], chat_id=config["Telegram"]["announcement_group"],
text=match.generate_text(session), text=match.generate_text(session),
reply_markup=inline_keyboard, reply_markup=inline_keyboard,
parse_mode="HTML") parse_mode="HTML")
break
except BadRequest: except BadRequest:
break
except TimedOut:
pass pass
except Exception: except Exception:
try: try: