From a9b76ac187c9af2b4624463c0033bdad2d22aab2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=9B=E6=B0=B4=E5=B1=85=E5=AE=A4?= Date: Tue, 14 Mar 2023 14:33:18 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20the=20`AdminHandler`=20not?= =?UTF-8?q?=20following=20the=20`block`=20parameter=20of=20the=20handler?= =?UTF-8?q?=20to=20be=20wrapped.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/handler/adminhandler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/handler/adminhandler.py b/core/handler/adminhandler.py index 64648a33..c972a840 100644 --- a/core/handler/adminhandler.py +++ b/core/handler/adminhandler.py @@ -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):