Facepalm. Backwards logic for detecting admins.

🤦‍♀️
This commit is contained in:
Stan James 2018-10-22 15:35:45 -06:00
parent 92a8426261
commit 400f51b381

2
bot.py
View File

@ -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: