Static ReadonlyMAX_WhatsApp caps the poll question at 255 characters.
Static ReadonlyMAX_WhatsApp caps each option at 100 characters.
Static ReadonlyMAX_WhatsApp caps a poll at 12 options.
Rejects duplicates (votes are keyed by option text) and enforces MAX_OPTIONS.
Throw on the first validation problem.
Requires a name + at least 2 unique options; runs assertValid() first.
Drop every option and the quiz answer.
How many options have been added.
A copy of the options added so far.
Remove one option by exact text (clears the quiz answer if it pointed at it).
Build and send via the socket's sendMessage().
Optionaloptions: Record<string, any>OptionalisAnnouncement: booleanOptionalallow: booleanThrows on an unparseable date instead of shipping endTime: NaN.
Optionalhide: booleanPin the 32-byte poll messageSecret (otherwise the socket mints a random one).
OptionalcanSelectMultiple: booleanReplace every option at once; rolls back on error.
Quiz mode — must match one of the added options exactly.
Alias of build().
Every problem with the current state; empty when safe to send.
Chainable poll builder wrapping the socket's own
sendMessage({ poll })path. Per-option images and hand-built quiz hashes are deliberately NOT supported (see the .js docblock) — quiz mode defers to the socket's tested logic.