Skip to content

Interactive messages

A poll is a question with 2–12 distinct options; selectableCount (default 1) is how many a voter may pick. Options must be unique: WhatsApp keys a vote by the option text, so duplicates make the tally ambiguous.

Button type Extra field Notes
reply id At most 3 per message
url url Must be http or https
call phoneNumber
copy copyCode Copies the code to the recipient’s clipboard

The cap of three applies to quick replies only — call-to-action buttons do not count against it. For more than three choices, use a list menu.

At most 10 sections and 10 rows per section. Row ids must be unique across the whole message, not merely within a section — the id is what comes back when the recipient chooses.

A malformed interactive payload fails silently on WhatsApp: the message arrives with the buttons stripped and no error anywhere. That is why Relay validates the shape before queuing and rejects it with VALIDATION_ERROR rather than accepting it.

Interactive messages cannot be sent to a WhatsApp channel (@newsletter).

A poll becomes sendPoll, link and copy buttons become an inline keyboard, and quick replies and list rows become a reply keyboard. Only the bot can send these — MTProto has no equivalent.