mirror of
https://github.com/PaiGramTeam/PamGram.git
synced 2024-11-22 06:17:54 +00:00
🐛 Fix the AdminHandler
not following the block
parameter of the handler to be wrapped.
This commit is contained in:
parent
0743367a7f
commit
a9b76ac187
@ -25,7 +25,7 @@ class AdminHandler(BaseHandler[Update, CCT]):
|
||||
self.handler = handler
|
||||
self.application = application
|
||||
self.user_service: Optional["UserAdminService"] = None
|
||||
super().__init__(self.handler.callback)
|
||||
super().__init__(self.handler.callback, self.handler.block)
|
||||
|
||||
def check_update(self, update: object) -> bool:
|
||||
if not isinstance(update, Update):
|
||||
|
Loading…
Reference in New Issue
Block a user