🐛 Fix the AdminHandler not following the block parameter of the handler to be wrapped.

This commit is contained in:
洛水居室 2023-03-14 14:33:18 +08:00
parent 0743367a7f
commit a9b76ac187
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -25,7 +25,7 @@ class AdminHandler(BaseHandler[Update, CCT]):
self.handler = handler self.handler = handler
self.application = application self.application = application
self.user_service: Optional["UserAdminService"] = None 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: def check_update(self, update: object) -> bool:
if not isinstance(update, Update): if not isinstance(update, Update):