Отправить опрос
POST
/waInstance{{idInstance}}/sendPoll/{{apiTokenInstance}}Документация SendPoll
Request
Body Params application/json
chatId
string
required
message
string
required
options
array [object {1}]
required
optionName
string
required
multipleAnswers
boolean
required
Example
{
"chatId": "79309995496@c.us",
"message": "Please choose the color:",
"options": [
{
"optionName": "green"
},
{
"optionName": "red"
},
{
"optionName": "blue"
}
],
"multipleAnswers": true
}
Request samples
Responses
sendPoll(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
idMessage
string
required
ExamplesendPoll
{
"idMessage": "3EB0160E742127137282"
}
Last modified: 18 days ago