Class TdApi.InputPollTypeQuiz

Enclosing class:
TdApi

public static class TdApi.InputPollTypeQuiz extends TdApi.InputPollType
A poll in quiz mode, which has predefined correct answers.
  • Field Details

    • correctOptionIds

      public int[] correctOptionIds
      Increasing list of 0-based identifiers of the correct answer options; must be non-empty.
    • explanation

      public TdApi.FormattedText explanation
      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.
    • explanationMedia

      public TdApi.InputMessageContent explanationMedia
      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: inputMessageAnimation, inputMessageAudio, inputMessageDocument, non-live inputMessageLocation, inputMessagePhoto, inputMessageVenue, or inputMessageVideo without caption.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • InputPollTypeQuiz

      public InputPollTypeQuiz()
      A poll in quiz mode, which has predefined correct answers.
    • InputPollTypeQuiz

      public InputPollTypeQuiz(int[] correctOptionIds, TdApi.FormattedText explanation, TdApi.InputMessageContent explanationMedia)
      A poll in quiz mode, which has predefined correct answers.
      Parameters:
      correctOptionIds - Increasing list of 0-based identifiers of the correct answer options; must be non-empty.
      explanation - 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.
      explanationMedia - 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: inputMessageAnimation, inputMessageAudio, inputMessageDocument, non-live inputMessageLocation, inputMessagePhoto, inputMessageVenue, or inputMessageVideo without caption.
  • Method Details

    • getConstructor

      public int getConstructor()
      Description copied from class: TdApi.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.InputPollType
      Returns:
      this.CONSTRUCTOR