接收微信机器人消息并保存到指定路径
通过微信自动化接收消息,并保存到指定文件中。
office/skills/wechat/receive_message/
from office.skills.wechat import receive_message
receive_message(
who='文件传输助手',
txt='userMessage.txt',
output_path='./'
)| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
who | str | 否 | '文件传输助手' | 发送消息的微信联系人 |
txt | str | 否 | 'userMessage.txt' | 消息内容的文本文件名 |
output_path | str | 否 | './' | 消息内容的保存路径 |
None:将消息保存到指定的文件和路径中
from office.skills.wechat import receive_message
receive_message(who='文件传输助手', txt='messages.txt', output_path='./received/')office.api.wechat.receive_message
2b1996b
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.