chore: sync current WechatHookBot workspace

This commit is contained in:
2026-03-09 15:48:45 +08:00
parent 4016c1e6eb
commit 9119e2307d
195 changed files with 24438 additions and 17498 deletions

View File

@@ -613,7 +613,8 @@ class ChatRoomSummary(PluginBase):
]
appmsg_xml = "".join(appmsg_parts)
await bot._send_data_async(11214, {"to_wxid": from_wxid, "content": appmsg_xml})
# 使用新的 HTTP API 发送 XML 消息
await bot.send_xml(from_wxid, appmsg_xml)
logger.success(f"已发送聊天记录: {title}")
except Exception as e:
@@ -669,18 +670,23 @@ class ChatRoomSummary(PluginBase):
"type": "function",
"function": {
"name": "generate_summary",
"description": "仅当用户明确要求“群聊总结/今日总结/昨日总结”时调用;不要在闲聊或无总结需求时触发。",
"description": (
"生成群聊总结(今日或昨日),并发送结构化总结结果。"
"仅当用户明确要求群聊总结/今日总结/昨日总结时调用;"
"普通对话中不要触发。"
),
"parameters": {
"type": "object",
"properties": {
"time_period": {
"type": "string",
"description": "时间段,可选值:'today'(今日)或'yesterday'(昨日)",
"description": "总结时间范围today=今日yesterday=昨日。缺省建议为 yesterday。",
"enum": ["today", "yesterday"],
"default": "yesterday"
}
},
"required": []
"required": [],
"additionalProperties": False
}
}
}