Skip to content
On this page

Subscribe Message

Developers can use the one-time message subscription authorization feature to enable third-party Apps or official accounts to send a message to authorized users. Authorized users do not have to follow the Official Accounts. Each time a WeChat user grants authorization, the developer can get permission to send a message to Service Notification.

requestSubscribeMessage

Sends a request to subscribe one-time message.

Type

typescript
function shareWebpage(request: {
  scene: number;
  templateId: string;
  reserved?: string;
}): Promise<boolean>;

Parameters

NameTypeRequiredDefault ValueDescription
sceneNumberYes/Identifies the subscription scene value.
templateIdStringYes/Subscription message template ID.
reservedStringNo/Maintains the request and callback status.

Released under the MIT License.