TTMSFNCCloudWhatsAppTemplateParameters.AddMedia Method
Adds a media parameter to the collection for image, document, or video header parameters.
API unit family: TMSFNCCloudWhatsApp
Declaring type: TTMSFNCCloudWhatsAppTemplateParameters
Syntax
function AddMedia(AParamType: TTMSFNCCloudWhatsAppTemplateParameterType; const AMediaID: string = ''; const AMediaLink: string = ''): TTMSFNCCloudWhatsAppTemplateParameter;
Parameters
| Name | Description |
|---|---|
AParamType |
Must be tptImage, tptDocument, or tptVideo. |
AMediaID |
API-assigned media identifier. Pass an empty string when using AMediaLink instead. |
AMediaLink |
Public URL for the media. Ignored when AMediaID is non-empty. |
Returns
The parameter entry that was added.