From 33eb1bb19701bec9be61ba6381b8dfb89fac8429 Mon Sep 17 00:00:00 2001 From: Frost Ming Date: Fri, 15 Dec 2023 14:08:22 +0800 Subject: [PATCH] fix bug Signed-off-by: Frost Ming --- handlers/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/__init__.py b/handlers/__init__.py index d460ef3..8aaab27 100644 --- a/handlers/__init__.py +++ b/handlers/__init__.py @@ -47,7 +47,7 @@ def wrap_handler(handler: T, bot: TeleBot) -> T: if not m: bot.reply_to(message, "Please provide info after start words.") return - return handler(m, *args, **kwargs) + return handler(message, *args, **kwargs) except Exception: traceback.print_exc() bot.reply_to(message, "Something wrong, please check the log")