mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-11 05:20:57 +00:00
fix(wechatpad): @所有人的情况下,修复@机器人消息未被正确解析的问题 (#1575)
This commit is contained in:
@@ -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}")
|
self.logger.info(f"ats_bot: {ats_bot}; bot_account_id: {bot_account_id}; bot_wxid: {bot_wxid}")
|
||||||
if "@所有人" in content:
|
if "@所有人" in content:
|
||||||
message_list.append(platform_message.AtAll())
|
message_list.append(platform_message.AtAll())
|
||||||
elif ats_bot:
|
if ats_bot:
|
||||||
message_list.append(platform_message.At(target=bot_account_id))
|
message_list.append(platform_message.At(target=bot_account_id))
|
||||||
|
|
||||||
# 解析@信息并生成At组件
|
# 解析@信息并生成At组件
|
||||||
|
|||||||
Reference in New Issue
Block a user