Sha256: d72e1ca169aa739259a7326050659ff5ae49fa5b92a49b390829e52ded4e2358

Contents?: true

Size: 645 Bytes

Versions: 2

Compression:

Stored size: 645 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::Coercible::Integer
    attribute :explanation, TD::Types::FormattedText.optional.default(nil)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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