Method
Parameters
Configuration for the poll
Returns
The created poll message
Examples
Basic Poll
Poll Without Title
Create Poll and Parse Definition
Create Poll in Group Chat
Error Handling
Notes
- Polls require at least 2 options (enforced by the SDK)
- The
titlefield is optional and can be an empty string - Save the returned
poll.guidto interact with the poll later (voting, adding options, etc.) - Use
parsePollDefinition()to extract poll details including option identifiers needed for voting - Poll options cannot be removed after creation, but new options can be added with
addOption() - The creator’s handle is automatically included in the poll data