Class: TD::Types::TermsOfService

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/terms_of_service.rb

Overview

Contains Telegram terms of service.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#min_user_ageInteger

The minimum age of a user to be able to accept the terms; 0 if any.

Returns:

  • (Integer)

    the current value of min_user_age



7
8
9
# File 'lib/tdlib/types/terms_of_service.rb', line 7

def min_user_age
  @min_user_age
end

#show_popupBoolean

True, if a blocking popup with terms of service must be shown to the user.

Returns:

  • (Boolean)

    the current value of show_popup



7
8
9
# File 'lib/tdlib/types/terms_of_service.rb', line 7

def show_popup
  @show_popup
end

#textTD::Types::FormattedText

Text of the terms of service.

Returns:



7
8
9
# File 'lib/tdlib/types/terms_of_service.rb', line 7

def text
  @text
end