From 981db23b6fad9df9a646d9806efc8c94984a7366 Mon Sep 17 00:00:00 2001 From: hexdev Date: Tue, 18 Aug 2026 14:25:36 +0700 Subject: [PATCH] fix: id is now int for everyone --- config.py | 2 +- misc/filters.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.py b/config.py index 5119706..442bf31 100644 --- a/config.py +++ b/config.py @@ -33,7 +33,7 @@ WELCOME_VIDEO_NOTE_FP = os.getenv("WELCOME_VIDEO_NOTE_FP", "static/welcome.mp4") ### Constants ### PAGE_SIZE = 8 -VERIFIED_ACCOUNTS = os.getenv("ADMINS", "").split(",") +VERIFIED_ACCOUNTS: list[int] = [int(el) for el in os.getenv("ADMINS", "").split(",")] NOTIFICATION_CHANNEL = os.getenv("NOTIFICATION_CHANNEL") if not NOTIFICATION_CHANNEL: diff --git a/misc/filters.py b/misc/filters.py index 6a94702..aec09db 100644 --- a/misc/filters.py +++ b/misc/filters.py @@ -6,4 +6,4 @@ from config import VERIFIED_ACCOUNTS class IsVerified(BaseFilter): async def __call__(self, inline_query: InlineQuery) -> bool: - return str(inline_query.from_user.id) in str(VERIFIED_ACCOUNTS) + return inline_query.from_user.id in VERIFIED_ACCOUNTS