v1

latestOpenAPI 3.1.02026-07-1413113265.9 KB
message

vote on poll

Submits a vote on an existing poll message with the specified options.

post/instances/{id}/client/action/vote-on-poll

Path parameters

idinteger required

Instance ID

Request body

messageIdstring required

The serialized message ID of the poll to vote on

selectedOptionsstring[] required

Array of option names to vote for

Example request

{
  "messageId": "true_1234567890@c.us_ABCDEF1234567890",
  "selectedOptions": [
    "Red",
    "Blue"
  ]
}

Response

Vote submitted successfully

status'success' | 'error'
instanceIdstring

Example response

{
  "status": "success",
  "instanceId": "1",
  "data": {
    "messageId": "true_1234567890@c.us_ABCDEF1234567890",
    "voted": true
  }
}