Sha256: 719ff8419a539fd53d7bece422fa0fbf2b67bff8e419c8816577a72d182b02d9

Contents?: true

Size: 634 Bytes

Versions: 1

Compression:

Stored size: 634 Bytes

Contents

module TD::Types
  # A poll in quiz mode, which has exactly one correct answer option and can be answered only once.
  #
  # @attr correct_option_id [Integer] 0-based identifier of the correct answer option; -1 for a yet unanswered poll.
  # @attr explanation [TD::Types::FormattedText, nil] 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; empty for a yet unanswered poll.
  class PollType::Quiz < PollType
    attribute :correct_option_id, TD::Types::Integer
    attribute :explanation, TD::Types::FormattedText.optional.default(nil)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tdlib-schema-1.7.0.1 lib/tdlib/types/poll_type/quiz.rb