FIx type error callback query

This commit is contained in:
Yasir Aris M 2023-11-03 12:48:00 +07:00 committed by GitHub
parent 7fceeef32b
commit 53687a39bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -99,7 +99,7 @@ class CallbackQueryHandler(Handler):
)
handler_does_match = (
await self.filters(client, query) if callable(self.filters) else True
self.filters(client, query) if callable(self.filters) else True
)
data = self.compose_data_identifier(query)
@ -142,4 +142,4 @@ class CallbackQueryHandler(Handler):
client.remove_listener(listener)
raise pyrogram.StopPropagation
else:
await self.original_callback(client, query, *args)
await self.original_callback(client, query, *args)