Interface PollOption

Describes one answer option of a poll.

interface PollOption {
    @type: "pollOption";
    addition_date: number;
    author: MessageSender;
    id: string;
    is_being_chosen?: boolean;
    is_chosen?: boolean;
    media: PollMedia;
    recent_voter_ids: MessageSender[];
    text: FormattedText;
    vote_percentage: number;
    voter_count: number;
}

Properties

@type: "pollOption"
addition_date: number

Point in time (Unix timestamp) when the option was added; 0 if the option existed from creation of the poll.

Identifier of the user or chat that added the option; may be null if the option existed from creation of the poll.

id: string

Unique identifier of the option in the poll; may be empty if yet unassigned.

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.

media: PollMedia

Option media; may be null if none. If present, currently, can only be of the types pollMediaAnimation, pollMediaLink, pollMediaLocation, pollMediaPhoto, pollMediaSticker, pollMediaVenue, or pollMediaVideo.

recent_voter_ids: MessageSender[]

Identifiers of recent voters for the option, if the poll is non-anonymous and poll results are available.

Option text; 1-100 characters; may contain only custom emoji entities.

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, or if the current user is the creator of the poll.