Use Simple Message Queue (formerly MNS) to receive delivery receipts (ChatAppStatus) for Mobile Terminated (MT) messages.
Prerequisites
You have registered an Alibaba Cloud account and created an AccessKey pair. For more information, see Create an AccessKey pair.
You have read Introduction and configuration process of message receipts. You understand the mode, type, and configuration process of message receipts.
Message body format
Parameter | Type | Required | Description |
MessageId | String | Yes | The unique identifier of the message. |
From | String | Yes | The sender's phone number. |
To | String | Yes | The recipient's phone number. |
Timestamp | Long | Yes | The Unix timestamp when the message was sent, in milliseconds. |
Status | String | Yes | The delivery status of the message. Valid values:
|
StatusDescription | String | Yes | The description of the status. |
ErrorCode | String | No | The error code for a delivery failure. |
ErrorDescription | String | No | The description of the error code. For details, see Error codes. |
ConversationType | String | No | The type of conversation. Valid values:
|
ConversationId | String | No | The unique identifier of the conversation. |
ConversationExpirationTime (deprecated) | Long | No | The time when the conversation expires. Note This field is deprecated and has no effect under the new per-message billing model. |
MsgFrameType | String | Yes | The message type. Valid values:
|
Type | String | No | The media type of the message content. Valid values:
|
TaskId | String | No | The custom task ID. Note If |
OriginPhoneNumber | String | No | The original phone number of the sender. |
TemplateCode | String | No | The code of the message template. Note This field is available only when |