Class: TD::Types::Update::TermsOfService

Inherits:
TD::Types::Update show all
Defined in:
lib/tdlib/types/update/terms_of_service.rb

Overview

New terms of service must be accepted by the user. If the terms of service are declined, then the deleteAccount method should be called with the reason "Decline ToS update".

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#terms_of_serviceTD::Types::TermsOfService

The new terms of service.

Returns:



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

def terms_of_service
  @terms_of_service
end

#terms_of_service_idString

Identifier of the terms of service.

Returns:

  • (String)

    the current value of terms_of_service_id



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

def terms_of_service_id
  @terms_of_service_id
end