Vote on Poll
Parameters
Vote configuration
Returns
The vote message
Example
Unvote from Poll
Parameters
Unvote configuration (same structure as vote)
Returns
The unvote message
Example
Add Option to Poll
Parameters
Configuration for adding an option
Returns
The message representing the added option
Example
Complete Example
Error Handling
Notes
- You can vote for multiple options in a poll (iMessage supports multiple selections)
unvote()only removes the vote for the specified option, not all votes- Option identifiers are unique strings generated by iMessage - always parse them from the poll definition
- Adding options requires a brief delay after poll creation (usually 1-2 seconds)
- Empty option text is not allowed when adding options
- The poll creator and other participants can add new options