diff --git a/pyrogram/handlers/handler.py b/pyrogram/handlers/handler.py index d4d41ea5..1f3d2af6 100644 --- a/pyrogram/handlers/handler.py +++ b/pyrogram/handlers/handler.py @@ -30,7 +30,7 @@ class Handler: self.filters = filters async def check(self, client: "pyrogram.Client", update: Update): - if self.filters: + if callable(self.filters): if inspect.iscoroutinefunction(self.filters.__call__): return await self.filters(client, update) else: