GREEN-API for WhatsApp icon

GREEN-API for WhatsApp

Send and receive WhatsApp messages using Green-API.

Sending → Send Poll

AI-generated

Summary

Send a poll to a WhatsApp chat using the Green-API sendPoll endpoint.

Inputs

  • chatId (required) — WhatsApp chat identifier (e.g., 79000000000@c.us).
  • message (required) — The poll question.
  • options — List of answer options; each option has an 'optionName' field. At least one option is expected.
  • multipleAnswers (required) — Whether respondents can select multiple answers (true) or only a single answer (false).
  • quotedMessageId — ID of a message to quote/reply to (optional).
  • typingTime — Typing delay in milliseconds before sending (defaults to 0).

Output shape

The raw JSON response from the Green-API sendPoll request, containing the result of the poll send operation.

If the request fails and the node is set to continue on fail, the error message will be returned in the json field under an 'error' key.

Links

Discussion