Module Values.SendWhatsAppMessageInputSource

Send 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 .

Sourcetype nonrec t = {
  1. 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.

    *)
  2. 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.

    *)
  3. 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.

    *)
}
Sourceval context_ : string
Sourceval make : originationPhoneNumberId:WhatsAppPhoneNumberId.t -> message:WhatsAppMessageBlob.t -> metaApiVersion:String_.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Blob of WhatsAppMessageBlob.t | `String of WhatsAppPhoneNumberId.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t