wechaty是微信单个帐户的机器人SDK,可以帮助您在6行JavaScript中创建一个bot,并具有跨平台支持,包括Linux,Windows,Darwin(OSX/MAC(和Docker。请参阅:https://github.com/chatie/wechaty
我想使用Wechaty发送URL链接,我可以自定义吗?
是的,你可以。
关联doc:https://docs.chatie.io/v/zh/faq#url-message
微信中的示例代码:https://github.com/chatie/wechaty/blob/master/master/src/src/src/message.ts#l471
const linkPayload = new UrlLink ({
description : 'WeChat Bot SDK for Individual Account, Powered by TypeScript, Docker, and Love',
thumbnailUrl: 'https://avatars0.githubusercontent.com/u/25162437?s=200&v=4',
title : 'Welcome to Wechaty',
url : 'https://github.com/chatie/wechaty',
})
await msg.say(linkPayload)
您可以更改自己喜欢的标题。