help.TermsOfServiceUpdate#

class pyrogram.raw.types.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 of TermsOfServiceUpdate.

Details:
  • Layer: 158

  • ID: 28ECF961

Parameters:
  • expires (int 32-bit) – New TOS updates will have to be queried using help.getTermsOfServiceUpdate in expires seconds.

  • terms_of_service (help.TermsOfService) – New terms of service.

Functions:

This object can be returned by 1 function.

help.GetTermsOfServiceUpdate

Look for updates of telegram's terms of service.