diff --git a/handlers/summary/__init__.py b/handlers/summary/__init__.py index ed9d72b..f14bcea 100644 --- a/handlers/summary/__init__.py +++ b/handlers/summary/__init__.py @@ -366,7 +366,9 @@ if settings.openai_api_key: confirm_command, commands=["confirm"], pass_bot=True ) bot.register_message_handler( - handle_message, func=partial(filter_message, bot=bot, check_chinese=True), pass_bot=True + handle_message, + func=partial(filter_message, bot=bot, check_chinese=True), + pass_bot=True, ) # 启动提肛提醒定时任务 diff --git a/handlers/summary/utils.py b/handlers/summary/utils.py index a870dc0..898890d 100644 --- a/handlers/summary/utils.py +++ b/handlers/summary/utils.py @@ -20,7 +20,7 @@ def contains_non_ascii(text: str) -> bool: def filter_message(message: Message, bot: TeleBot, check_chinese: bool = False) -> bool: """过滤消息,排除非文本消息和命令消息 - + Args: message: 消息对象 bot: Bot 实例