Interface PollOption

Describes one answer option of a poll.

interface PollOption {
    @type: "pollOption";
    is_being_chosen?: boolean;
    is_chosen?: boolean;
    text: FormattedText;
    vote_percentage: number;
    voter_count: number;
}

Properties

@type: "pollOption"
is_being_chosen?: boolean

True, if the option is being chosen by a pending setPollAnswer request.

is_chosen?: boolean

True, if the option was chosen by the user.

Option text; 1-100 characters. Only custom emoji entities are allowed.

vote_percentage: number

The percentage of votes for this option; 0-100.

voter_count: number

Number of voters for this option, available only for closed or voted polls.