Interface PollAnswer

This object represents an answer of a user in a non-anonymous poll.

interface PollAnswer {
    option_ids: number[];
    poll_id: string;
    user?: User;
    voter_chat?: Chat;
}

Properties

option_ids: number[]

0-based identifiers of chosen answer options. May be empty if the vote was retracted.

poll_id: string

Unique poll identifier

user?: User

The user that changed the answer to the poll, if the voter isn't anonymous

voter_chat?: Chat

The chat that changed the answer to the poll, if the voter is anonymous