help.termsOfServiceUpdate

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"

Constructor schema is available as of layer 80. Switch »

Parameters

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

Type

help.TermsOfServiceUpdate

Related pages

help.getTermsOfServiceUpdate

Look for updates of telegram's terms of service

account.deleteAccount

Delete the user's account from the telegram servers.

Can also be used to delete the account of a user that provided the login code, but forgot the 2FA password and no recovery method is configured, see here » for more info on password recovery, and here » for more info on account deletion.