Sha256: 639189ff5b481ce6ec382ddcb1d741a4b986b51e083c5136fd4e823d6e48f2da

Contents?: true

Size: 528 Bytes

Versions: 2

Compression:

Stored size: 528 Bytes

Contents

module TD::Types
  # Contains Telegram terms of service.
  #
  # @attr text [TD::Types::FormattedText] Text of the terms of service.
  # @attr min_user_age [Integer] The minimum age of a user to be able to accept the terms; 0 if any.
  # @attr show_popup [Boolean] True, if a blocking popup with terms of service must be shown to the user.
  class TermsOfService < Base
    attribute :text, TD::Types::FormattedText
    attribute :min_user_age, TD::Types::Coercible::Integer
    attribute :show_popup, TD::Types::Bool
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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