Interface PollTypeQuiz

A poll in quiz mode, which has predefined correct answers. Subtype of PollType.

interface PollTypeQuiz {
    @type: "pollTypeQuiz";
    correct_option_ids: number[];
    explanation: FormattedText;
    explanation_media: PollMedia;
}

Properties

@type: "pollTypeQuiz"
correct_option_ids: number[]

Increasing list of 0-based identifiers of the correct answer options; empty for a yet unanswered poll.

explanation: FormattedText

Text that is shown when the user chooses an incorrect answer or taps on the lamp icon; empty for a yet unanswered poll.

explanation_media: PollMedia

Media that is shown when the user chooses an incorrect answer or taps on the lamp icon; may be null if none or the poll isn't answered yet. If present, currently, can only be of the types pollMediaAnimation, pollMediaAudio, pollMediaDocument, pollMediaLocation, pollMediaPhoto, pollMediaVenue, or pollMediaVideo.