TTMSFNCCloudCustomWhatsApp.SendAudio Method
Uploads an audio file and sends it to a recipient.
API unit family: TMSFNCCloudWhatsApp
Declaring type: TTMSFNCCloudCustomWhatsApp
Overloads
Overload 1
Uploads an audio file and sends it to a recipient.
procedure SendAudio(ANumber: String; AFile: TTMSFNCUtilsFile; AReplyToID: String = ''; ACaption: String = ''); overload;
Parameters
| Name | Description |
|---|---|
ANumber |
Recipient phone number. |
AFile |
File object that provides the audio content. |
AReplyToID |
Optional message identifier to reply to. |
Overload 2
Uploads audio content from a stream and sends it to a recipient.
procedure SendAudio(ANumber: String; AMediaStream: TStream; AFileName: string; AReplyToID: String = ''; ACaption: String = ''); overload;
Parameters
| Name | Description |
|---|---|
ANumber |
Recipient phone number. |
AMediaStream |
Stream that contains the audio content. |
AFileName |
File name to associate with the uploaded audio. |
AReplyToID |
Optional message identifier to reply to. |