1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 21:44:21 +00:00
This commit is contained in:
Steffo 2019-01-25 21:29:38 +01:00
parent 0b8f3d5e25
commit ab0fa243f5

View file

@ -402,11 +402,12 @@ def on_callback_query(bot: Bot, update: Update):
try: try:
bot.send_message(player.user.telegram_id, bot.send_message(player.user.telegram_id,
s(strings.MATCHMAKING.GAME_START[player.status], s(strings.MATCHMAKING.GAME_START[player.status],
**match.format_dict())) **match.format_dict()),
parse_mode="HTML")
except Unauthorized: except Unauthorized:
failed_send.append(player) failed_send.append(player)
if failed_send: if failed_send:
for player in match.players: for player in failed_send:
bot.send_message(int(config["Telegram"]["main_group"]), bot.send_message(int(config["Telegram"]["main_group"]),
s(strings.MATCHMAKING.ERRORS.UNAUTHORIZED, mention=player.user.mention())) s(strings.MATCHMAKING.ERRORS.UNAUTHORIZED, mention=player.user.mention()))
elif update.callback_query.data == "match_cancel": elif update.callback_query.data == "match_cancel":