Skip to main content
Table of Contents

TTMSFNCCloudWhatsApp.SendImage Method

Uploads an image file and sends it to a recipient.

API unit family: TMSFNCCloudWhatsApp Declaring type: TTMSFNCCloudWhatsApp Inherited from: TTMSFNCCloudCustomWhatsApp

Overloads

Overload 1

Uploads an image file and sends it to a recipient.

FMX.TMSFNCCloudWhatsApp.hppPascalC++
procedure SendImage(ANumber: String; AFile: TTMSFNCUtilsFile; AReplyToID: String = ''; ACaption: String = ''); overload;
void __fastcall SendImage(System::UnicodeString ANumber, TTMSFNCUtilsFile AFile, System::UnicodeString AReplyToID = System::UnicodeString(), System::UnicodeString ACaption = System::UnicodeString())/* overload */;

Parameters

Name Description
ANumber Recipient phone number.
AFile File object that provides the image content.
AReplyToID Optional message identifier to reply to.

Overload 2

Uploads image content from a stream and sends it to a recipient.

FMX.TMSFNCCloudWhatsApp.hppPascalC++
procedure SendImage(ANumber: String; AMediaStream: TStream; AFileName: string; AReplyToID: String = ''; ACaption: String = ''); overload;
void __fastcall SendImage(System::UnicodeString ANumber, System::Classes::TStream* AMediaStream, System::UnicodeString AFileName, System::UnicodeString AReplyToID = System::UnicodeString(), System::UnicodeString ACaption = System::UnicodeString())/* overload */;

Parameters

Name Description
ANumber Recipient phone number.
AMediaStream Stream that contains the image content.
AFileName File name to associate with the uploaded image.
AReplyToID Optional message identifier to reply to.