Skip to content

InputPollTypeQuiz

Type · TDLib 1.8.67 · d1085f9c

A poll in quiz mode, which has predefined correct answers

InputPollTypeQuiz(
  correct_option_ids: list of int32,
  explanation: FormattedText,
  explanation_media: InputPollMedia
) → InputPollType

correct_option_ids

list of int32

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