SendTemplateMessages
Last updated
Was this helpful?
Last updated
Was this helpful?
id
{"instance_key":"id","jid":"groupid","text":"Body ?","imageUrl":"url","footer":"Hello World","templateButtons":[{"index":1,"urlButton":{"displayText":"Google","url":"https://google.com"}},{"index":2,"callButton":{"displayText":"Call me!","phoneNumber":"+1 (234) 5678-901"}},{"index":3,"quickReplyButton":{"displayText":"This is a reply, just like normal buttons!","id":"id-like-buttons-message"}}]}
POST /groups/sendTemplateMessages HTTP/1.1
Host: base_url
Content-Type: application/json
Accept: */*
Content-Length: 398
{
"instance_key": "id",
"jid": "groupid",
"text": "Body ?",
"imageUrl": "url",
"footer": "Hello World",
"templateButtons": [
{
"index": 1,
"urlButton": {
"displayText": "Google",
"url": "https://google.com"
}
},
{
"index": 2,
"callButton": {
"displayText": "Call me!",
"phoneNumber": "+1 (234) 5678-901"
}
},
{
"index": 3,
"quickReplyButton": {
"displayText": "This is a reply, just like normal buttons!",
"id": "id-like-buttons-message"
}
}
]
}
No content