Send a poll message with multiple choice options
cURL
curl --request POST \ --url https://api.example.com/message/sendPoll/:instanceName \ --header 'Content-Type: application/json' \ --data ' { "number": "<string>", "name": "<string>", "selectableCount": 123, "values": [ {} ], "delay": 123 } '
{ "key": { "remoteJid": "<string>", "fromMe": true, "id": "<string>" }, "message": {} }
Show properties
curl -X POST https://your-api.com/message/sendPoll/my-instance \ -H "apikey: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "number": "5511999999999", "name": "What is your favorite color?", "selectableCount": 1, "values": [ "Red", "Blue", "Green", "Yellow" ] }'
selectableCount