Bailey (WhatsApp) icon

Bailey (WhatsApp)

Interact with WhatsApp via Baileys WebSocket API

Actions122

Message → Send Poll

AI-generated

Summary

Send a WhatsApp poll to the specified recipient JID. The poll options are split on commas, trimmed, and empty entries removed; users can select the configured number of options.

Inputs

  • Recipient JID (required) — WhatsApp JID for a person or group, such as 12025551234@s.whatsapp.net or groupid@g.us.
  • Poll Name (required) — Poll question.
  • Poll Options (required) — Comma-separated choices, such as "Yes,No,Maybe". Each choice is trimmed and blank choices are discarded.
  • Selectable Count — Number of choices a voter can select; defaults to 1. The UI specifies a minimum of 1.

Output shape

A single item containing the sent message object in its json field.

If the send call returns no message object, the json field is an empty object.

Links

Discussion