Skip to content

Commit 093d1e0

Browse files
committed
Fix filters.user and .chat breaking when no initial collection is passed
1 parent d44e920 commit 093d1e0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pyrogram/handlers/handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def __init__(self, callback: Callable, filters: Filter = None):
3030
self.filters = filters
3131

3232
async def check(self, client: "pyrogram.Client", update: Update):
33-
if self.filters:
33+
if callable(self.filters):
3434
if inspect.iscoroutinefunction(self.filters.__call__):
3535
return await self.filters(client, update)
3636
else:

0 commit comments

Comments
 (0)