mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-30 15:04:18 +00:00
Fix
This commit is contained in:
parent
0b8f3d5e25
commit
ab0fa243f5
1 changed files with 3 additions and 2 deletions
|
@ -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":
|
||||||
|
|
Loading…
Reference in a new issue