📤 Chatting

Vote on a poll

Cast vote(s) on an existing poll message

post/api/sendPollVote

Request

  • Base URL: http://localhost:3000
  • URL: http://localhost:3000/api/sendPollVote
  • Auth: API key in header X-Api-Key

Request body

chatIdstring required
pollMessageIdstring required

The ID of the poll message. Format: {fromMe}{chatID}{messageId}[_{participant}] or just ID for GOWS

pollServerIdnumber

Only for Channels - server message id (if known); if omitted, API may look it up in the storage

sessionstring required

Example request

{
  "chatId": "11111111111@c.us",
  "pollMessageId": "false_11111111111@c.us_AAAAAAAAAAAAAAAAAAAA"
}

Changes

No recorded changes to this operation across all 1 revision of this API.