WA Quick Reply Button Message
In order to send the WA Quick Reply Button message (Non-Templated)- with or Without Mdia file- enterprises have to use the Card Message Object- The details for the same is mentioned below-
Card Message- Message containing text, media and choices.
It contains following Details-
Objects | |
---|---|
Choices | Array of objects (Choice message) You may include choices in your Card Message. The number of choices is limited to 10 |
Description | string This is an optional description field that is displayed below the title on the card. |
Height | string (CardHeight) You can set the desired size of the card in the message. Enum: "UNSPECIFIED_HEIGHT" "SHORT" "MEDIUM" "TALL" |
Media_message | object (MediaCarouselMessage) A message containing an image media component. |
Title | string The title of the card message. |
JSON Object Parameter in Choice Object to be used for Quick Reply Messages-
Objects | |
---|---|
Text_message | object (TextMessage) A message containing only text. |
postback_data | string An optional field. This data will be returned in the ChoiceResponseMessage. The default is message_id_text, title. |
JSON Object Parameter in Text Message-
Attribute | Description |
---|---|
Text Required | String The text to be sent. |
JSON Object Parameter in Media_Message Object-
Attribute | Description |
---|---|
Text Required | String Url to the media file. |
Caption | String Caption for the media on supported channels. |
{
"app_id": "01E9AHW7C686SN0HZ595BH1YYY",
"recipient": {
"identified_by": {
"channel_identities": [
{
"channel": "WHATSAPP",
"identity": "91931XXXXXXX"
}
]
}
},
"message": {
"card_message": {
"title": "Sign up for our newsletter",
"description": "Our weekly newsletter with deals and extra content!",
"media_message": {
"url": "https://1vxc0v12qhrm1e72gq1mmxkf-wpengine.netdna-ssl.com/wp-content/uploads/2019/05/Sinch-logo-Events.png"
},
"choices": [
{
"text_message": {
"text": "Sign up here"
}
}
]
}
}
}