From 94bb52ad629e30d23821920a33faf54f54117fd9 Mon Sep 17 00:00:00 2001 From: Profitroll <47523801+profitrollgame@users.noreply.github.com> Date: Sun, 11 Dec 2022 01:31:06 +0100 Subject: [PATCH] Improved admin check --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index bd365a3..6c40ca1 100644 --- a/app.py +++ b/app.py @@ -4,7 +4,7 @@ from pyrogram.client import Client app = Client("holochecker", bot_token=configGet("bot_token", "bot"), api_id=configGet("api_id", "bot"), api_hash=configGet("api_hash", "bot")) async def isAnAdmin(admin_id): - if admin_id == configGet("owner") or admin_id in configGet("admins"): + if (admin_id == configGet("owner")) or (admin_id in configGet("admins")): return True async for member in app.get_chat_members(configGet("admin_group")): if member.user.id == admin_id: