OpenWA icon

OpenWA

Interact with OpenWA WhatsApp API Gateway

Actions138

Message → Vote Poll

AI-generated

Summary

Vote on a WhatsApp poll by selecting up to 12 option texts. The selection replaces your previous vote; provide an empty list to clear it.

Inputs

  • Session Name or ID (required) — The session to use when sending the vote.
  • Chat Name or ID (required) — The chat containing the poll, such as a personal chat ending in @c.us or a group ending in @g.us.
  • Message ID (required) — The full serialized ID of the poll message.
  • Selected Options — Option texts to select, up to 12. Supply a comma-separated list, a JSON array, or an expression resolving to an array. Text must match the poll options exactly; an empty list clears your vote. Use a JSON array if an option contains a comma.

Output shape

A single item containing the API response.

Voting is supported only with the whatsapp-web.js engine; Baileys returns HTTP 501.

Links

Discussion