Skip to main content
Table of Contents

TTMSFNCCloudCustomWhatsApp.SendTextMessage Method

Sends a text message to a recipient.

API unit family: TMSFNCCloudWhatsApp Declaring type: TTMSFNCCloudCustomWhatsApp

Syntax

FMX.TMSFNCCloudWhatsApp.hppPascalC++
procedure SendTextMessage(ANumber: String; AMessage: String; APreviewText: Boolean = false; AReplyToID: String = '');
void __fastcall SendTextMessage(System::UnicodeString ANumber, System::UnicodeString AMessage, bool APreviewText = false, System::UnicodeString AReplyToID = System::UnicodeString());

Parameters

Name Description
ANumber Recipient phone number.
AMessage Message body to send.
APreviewText Set to True to request link previews for URLs in the message body.
AReplyToID Optional message identifier to reply to.