MadelineProtoDocs/old_docs/API_docs_v81/constructors/help_termsOfServiceUpdate.md
2019-12-27 17:48:04 +01:00

1.4 KiB

title description image
help.termsOfServiceUpdate Info about an update of telegram's terms of service. If the terms of service are declined, then the [account.deleteAccount](../methods/account.deleteAccount.md) method should be called with the reason "Decline ToS update" https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

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:

Name Type Required Description
expires int Yes New TOS updates will have to be queried using help.getTermsOfServiceUpdate in expires seconds
terms_of_service help_TermsOfService Yes New terms of service

Type: help_TermsOfServiceUpdate

Example:

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

Or, if you're into Lua:

help_termsOfServiceUpdate={_='help.termsOfServiceUpdate', expires=int, terms_of_service=help_TermsOfService}