D-API icon

D-API

Interagir com D-API para automação do WhatsApp

Mensagem → Enviar Poll

AI-generated

Summary

Send a poll message through a specified WhatsApp session to a given phone number with a defined question and multiple choice options.

Inputs

  • ID Da Sessão (required) — The ID of the WhatsApp session to use for sending the poll.
  • Telefone (required) — The phone number to which the poll message will be sent.
  • Pergunta (required) — The question text of the poll.
  • Opções (required) — Multiple poll options provided as separate values (one option per line).
  • Assíncrono — Whether to execute the sending operation asynchronously (defaults to false).

Output shape

A single JSON object representing the response from the D-API after sending the poll message.

The output contains the API response object for the sent poll message. If multiple items are processed, outputs are aggregated accordingly. Errors are thrown unless 'Continue On Fail' is enabled, in which case errors are returned as JSON objects.

Examples

Example 1: Send a poll question with multiple options asynchronously to a recipient's phone number using a specific session ID.

Set 'ID Da Sessão' to the session ID, 'Telefone' to the recipient phone number, 'Pergunta' to the poll question, 'Opções' to multiple option values, and set 'Assíncrono' to true.

Discussion