Fix filters.user and .chat breaking when no initial collection is passed
This commit is contained in:
parent
d44e920655
commit
093d1e0dcb
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user