1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00
This commit is contained in:
Steffo 2019-01-25 15:42:08 +01:00
parent 354a8fc76f
commit 9e4f875427

View file

@ -402,7 +402,7 @@ def on_callback_query(bot: Bot, update: Update):
s(strings.MATCHMAKING.GAME_START[player.status],
**match.format_dict()))
elif update.callback_query.data == "match_cancel":
if not (match.creator == user or match.creator_id == 25167391):
if not (match.creator == user or user.telegram_id == 25167391):
bot.answer_callback_query(update.callback_query.id,
show_alert=True,
text=strings.MATCHMAKING.ERRORS.NOT_ADMIN)