TTMSFNCCloudCustomWhatsApp Class
Provides the shared implementation for WhatsApp Business messaging, media upload, and media download operations.
API unit family: TMSFNCCloudWhatsApp
Inherits from: TTMSFNCSimpleCloudOAuth
Syntax
TTMSFNCCloudCustomWhatsApp = class(TTMSFNCSimpleCloudOAuth)
Properties
| Name | Description |
|---|---|
| Messages | Gets the collection of message objects sent through the component. |
Methods
| Name | Description |
|---|---|
| CreateContact | Creates a contact card with basic name, phone, and email values. |
| DownloadFile | Downloads a media file represented by a media object. |
| DownloadFileByURL | Downloads a media file from an existing media URL. |
| GetMediaURL | Requests a temporary download URL for uploaded media by media identifier. |
| SendAudio | Uploads an audio file and sends it to a recipient. |
| SendContacts | Sends a single contact card to a recipient. |
| SendDocument | Uploads a document file and sends it to a recipient. |
| SendImage | Uploads an image file and sends it to a recipient. |
| SendLocation | Sends a location message to a recipient. |
| SendMedia | Sends previously uploaded media by media identifier. |
| SendSticker | Uploads a sticker file and sends it to a recipient. |
| SendTextMessage | Sends a text message to a recipient. |
| SendVideo | Uploads a video file and sends it to a recipient. |
| UploadAudio | Uploads an audio file. |
| UploadDocument | Uploads a document file. |
| UploadImage | Uploads an image file. |
| UploadSticker | Uploads a sticker file. |
| UploadVideo | Uploads a video file. |