fix(wechatpad): @所有人的情况下,修复@机器人消息未被正确解析的问题 (#1575)

This commit is contained in:
gaord
2025-07-18 12:52:30 +08:00
committed by GitHub
parent fdc79b8d77
commit 878ab0ef6b

View File

@@ -105,7 +105,7 @@ class WeChatPadMessageConverter(adapter.MessageConverter):
self.logger.info(f"ats_bot: {ats_bot}; bot_account_id: {bot_account_id}; bot_wxid: {bot_wxid}")
if "@所有人" in content:
message_list.append(platform_message.AtAll())
elif ats_bot:
if ats_bot:
message_list.append(platform_message.At(target=bot_account_id))
# 解析@信息并生成At组件