Link Search Menu Expand Document

Constructor: help.termsOfServiceUpdate

Back to constructors index

Info about an update of telegram’s terms of service. If the terms of service are declined, then the account.deleteAccount method should be called with the reason “Decline ToS update”

Attributes:

NameTypeRequiredDescription
expiresintYesNew TOS updates will have to be queried using help.getTermsOfServiceUpdate in expires seconds
terms_of_servicehelp.TermsOfServiceYesNew terms of service

Type: help.TermsOfServiceUpdate

Example:

$help_termsOfServiceUpdate = ['_' => 'help.termsOfServiceUpdate', 'expires' => int, 'terms_of_service' => help.TermsOfService];