TTMSFNCCloudWhatsApp Class
Exposes WhatsApp Business messaging, media upload, and media download operations as a component.
API unit family: TMSFNCCloudWhatsApp
Inherits from: TTMSFNCCloudCustomWhatsApp
Syntax
TTMSFNCCloudWhatsApp = class(TTMSFNCCloudCustomWhatsApp)
Properties
| Name |
Description |
| Files |
Gets the collection of media files uploaded through the component. (inherited from TTMSFNCCloudCustomWhatsApp) |
| Messages |
Gets the collection of message objects sent through the component. (inherited from TTMSFNCCloudCustomWhatsApp) |
| PhoneNumberID |
Gets or sets the phone number identifier used for WhatsApp Business API requests. (inherited from TTMSFNCCloudCustomWhatsApp) |
Methods
| Name |
Description |
| CreateContact |
Creates a contact card with basic name, phone, and email values. (inherited from TTMSFNCCloudCustomWhatsApp) |
| DownloadFile |
Downloads a media file represented by a media object. (inherited from TTMSFNCCloudCustomWhatsApp) |
| DownloadFileByURL |
Downloads a media file from an existing media URL. (inherited from TTMSFNCCloudCustomWhatsApp) |
| GetMediaURL |
Requests a temporary download URL for uploaded media by media identifier. (inherited from TTMSFNCCloudCustomWhatsApp) |
| SendAudio |
Uploads an audio file and sends it to a recipient. (inherited from TTMSFNCCloudCustomWhatsApp) |
| SendContacts |
Sends a single contact card to a recipient. (inherited from TTMSFNCCloudCustomWhatsApp) |
| SendDocument |
Uploads a document file and sends it to a recipient. (inherited from TTMSFNCCloudCustomWhatsApp) |
| SendImage |
Uploads an image file and sends it to a recipient. (inherited from TTMSFNCCloudCustomWhatsApp) |
| SendLocation |
Sends a location message to a recipient. (inherited from TTMSFNCCloudCustomWhatsApp) |
| SendMedia |
Sends previously uploaded media by media identifier. (inherited from TTMSFNCCloudCustomWhatsApp) |
| SendSticker |
Uploads a sticker file and sends it to a recipient. (inherited from TTMSFNCCloudCustomWhatsApp) |
| SendTextMessage |
Sends a text message to a recipient. (inherited from TTMSFNCCloudCustomWhatsApp) |
| SendVideo |
Uploads a video file and sends it to a recipient. (inherited from TTMSFNCCloudCustomWhatsApp) |
| UploadAudio |
Uploads an audio file. (inherited from TTMSFNCCloudCustomWhatsApp) |
| UploadDocument |
Uploads a document file. (inherited from TTMSFNCCloudCustomWhatsApp) |
| UploadImage |
Uploads an image file. (inherited from TTMSFNCCloudCustomWhatsApp) |
| UploadSticker |
Uploads a sticker file. (inherited from TTMSFNCCloudCustomWhatsApp) |
| UploadVideo |
Uploads a video file. (inherited from TTMSFNCCloudCustomWhatsApp) |
Events
| Name |
Description |
| OnDownloadFileSuccess |
Occurs after a media file has been downloaded successfully. (inherited from TTMSFNCCloudCustomWhatsApp) |
| OnError |
Occurs when a WhatsApp API request returns an error. (inherited from TTMSFNCCloudCustomWhatsApp) |
| OnSendSuccess |
Occurs after a message has been accepted by the API. (inherited from TTMSFNCCloudCustomWhatsApp) |
| OnUploadSuccess |
Occurs after media has been uploaded successfully. (inherited from TTMSFNCCloudCustomWhatsApp) |