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 type of TermsOfServiceUpdate.

Details
  • Layer: 126

  • ID: 0x28ecf961

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.

Methods

This object can be returned by 1 method:

help.GetTermsOfServiceUpdate

Look for updates of telegram’s terms of service.