PollOption
Describes one answer option of a poll.
This is an alias for the PollOptionUnion
type.
chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
_ | "pollOption" | |
text | string | Option text; 1-100 characters |
voterCount | number | Number of voters for this option, available only for closed or voted polls |
votePercentage | number | The percentage of votes for this option; 0-100 |
isChosen | boolean | True, if the option was chosen by the user |
isBeingChosen | boolean | True, if the option is being chosen by a pending setPollAnswer request |