Skip to main content
Table of Contents

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

FMX.TMSFNCCloudWhatsApp.hppPascalC++
function AddMedia(AParamType: TTMSFNCCloudWhatsAppTemplateParameterType; const AMediaID: string = ''; const AMediaLink: string = ''): TTMSFNCCloudWhatsAppTemplateParameter;
TTMSFNCCloudWhatsAppTemplateParameter* __fastcall AddMedia(TTMSFNCCloudWhatsAppTemplateParameterType AParamType, const System::UnicodeString AMediaID = System::UnicodeString(), const System::UnicodeString AMediaLink = System::UnicodeString());

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.