Interface InputPollTypeQuiz

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

interface InputPollTypeQuiz {
    @type: "inputPollTypeQuiz";
    correct_option_ids: number[];
    explanation: FormattedText;
    explanation_media: InputPollMedia;
}

Properties

@type: "inputPollTypeQuiz"
correct_option_ids: number[]

Increasing list of 0-based identifiers of the correct answer options; must be non-empty.

explanation: FormattedText

Text that is shown when the user chooses an incorrect answer or taps on the lamp icon; 0-200 characters with at most 2 line feeds.

explanation_media: InputPollMedia

Media that is shown when the user chooses an incorrect answer or taps on the lamp icon; pass null if none. Must be one of the following types: inputPollMediaAnimation, inputPollMediaAudio, inputPollMediaDocument, inputPollMediaLocation, inputPollMediaPhoto, inputPollMediaVenue, or inputPollMediaVideo without caption.