From 9e4f87542754dc8980d524410cf5c3a40105949a Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 25 Jan 2019 15:42:08 +0100 Subject: [PATCH] facepalm --- telegrambot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegrambot.py b/telegrambot.py index a477a99a..ec201af2 100644 --- a/telegrambot.py +++ b/telegrambot.py @@ -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)