TTMSFNCCloudWhatsAppMessage Class
Composes a WhatsApp message payload before it is sent.
API unit family: TMSFNCCloudWhatsApp
Inherits from: TPersistent
Syntax
TTMSFNCCloudWhatsAppMessage = class(TPersistent)
Properties
| Name | Description |
|---|---|
| Contacts | Gets or sets the contacts payload for contact messages. |
| ID | Gets the message identifier assigned after a successful send operation. |
| Location | Gets or sets the location payload for location messages. |
| Media | Gets or sets the media payload for media messages. |
| MessageType | Gets or sets the payload type that determines which message data is serialized. |
| ReplyToID | Gets or sets the message identifier that this message replies to. |
| SendTo | Gets or sets the recipient phone number. |
| Template | Gets or sets the template payload used when MessageType is mtTemplate. |
| Text | Gets or sets the text payload for text messages. |
Methods
| Name | Description |
|---|---|
| ToJSON | Serializes the message payload to a WhatsApp message JSON object. |