Values.SendWhatsAppMessageInputSourceSend a WhatsApp message. For examples of sending a message using the Amazon Web Services CLI, see Sending messages in the Amazon Web Services End User Messaging Social User Guide .
type nonrec t = {originationPhoneNumberId : WhatsAppPhoneNumberId.t;The ID of the phone number used to send the WhatsApp message. If you are sending a media file only the originationPhoneNumberId used to upload the file can be used. Phone number identifiers are formatted as phone-number-id-01234567890123456789012345678901. Use GetLinkedWhatsAppBusinessAccount to find a phone number's id.
*)message : WhatsAppMessageBlob.t;The message to send through WhatsApp. The length is in KB. The message field passes through a WhatsApp Message object, see Messages in the WhatsApp Business Platform Cloud API Reference.
*)metaApiVersion : String_.t;The API version for the request formatted as v{VersionNumber}. For a list of supported API versions and Amazon Web Services Regions, see Amazon Web Services End User Messaging Social API Service Endpoints in the Amazon Web Services General Reference.
*)}val make :
originationPhoneNumberId:WhatsAppPhoneNumberId.t ->
message:WhatsAppMessageBlob.t ->
metaApiVersion:String_.t ->
unit ->
tval to_value :
t ->
[> `Structure of
(string
* [> `Blob of WhatsAppMessageBlob.t
| `String of WhatsAppPhoneNumberId.t ])
list ]