wechaty / wishlist

Puppets, Bots, and other Tooling Requested by Community Members
6 stars 0 forks source link

Enhance our wechaty-puppet-official-account to support more message types and get user profiles #16

Open huan opened 3 years ago

huan commented 3 years ago

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:

  1. Send/Receive message of types other than the text: video, image, location, etc.
  2. Get user information from the server and fill them into ContactPayload, to support the Contact related methods.
huan commented 3 years ago

One more use case:

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.