From 400f51b381b5e21707d74f275d81b58ad620d793 Mon Sep 17 00:00:00 2001 From: Stan James Date: Mon, 22 Oct 2018 15:35:45 -0600 Subject: [PATCH] Facepalm. Backwards logic for detecting admins. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤦‍♀️ --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 637b906..e606713 100644 --- a/bot.py +++ b/bot.py @@ -275,7 +275,7 @@ class TelegramMonitorBot: ) # Don't check admin activity - is_admin = update.message.from_user.id not in self.get_admin_ids(bot, update.message.chat_id) + is_admin = update.message.from_user.id in self.get_admin_ids(bot, update.message.chat_id) if is_admin and self.admin_exempt: print("👮‍♂️ Skipping checks. User is admin: {}".format(user.id)) else: