Open huan opened 3 years ago
When we have published a blog post, we can use UrlLink.create(url)
to create a card to share it in WeChat.
In Official Account, we can publish an article by creating a "素材" then publish it to all followers.
What I want to do is:
const urlLink = UrlLink.create('https://wechaty.js.org/2021/01/25/wechaty-0.56-released/')
const broadcast = await wechatyOa.Room.find('__ALL_FOLLOWERS__')
await broadcast.say(urlLink)
The above code will create a "素材“ in Official Account and then publish it to all followers.
IM to be puppeted:
WeChat Official Account: wechaty-puppet-official-account
Reference material (API docs, etc):
We have already published our first version of wechaty-puppet-official-account which supports send/receive text messages.
What we want to support next is the following two new features:
text
: video, image, location, etc.Contact
related methods.