Wechat OfficialAccount icon

Wechat OfficialAccount

Wechat OfficialAccount

Actions77

被动回复 → 回复图文消息

AI-generated

Summary

Builds an XML passive reply containing one or more WeChat news articles, with recipient and developer account IDs, creation time, and message type. Use it to return article cards in response to an incoming account message.

Inputs

  • ToUserName (required) — Recipient’s WeChat OpenID; defaults to the incoming message’s fromusername.
  • FromUserName (required) — The official account’s original ID; defaults to the incoming message’s tousername.
  • Articles (required) — Add article entries with Title, Description, PicUrl, and Url. ArticleCount is derived from the number of entries. PicUrl is the image link and Url is the article link.

Output shape

A single XML passive-reply response item.

The operation uses the supplied fields to form the WeChat news-message reply. CreateTime defaults to the current time in seconds, and MsgType is fixed to news.

Links

Discussion