Module tdlight.api

Class TdApi.TermsOfService

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.TermsOfService
Enclosing class:
TdApi

public static final class TdApi.TermsOfService extends TdApi.Object
Contains Telegram terms of service.
  • Field Details

    • text

      public TdApi.FormattedText text
      Text of the terms of service.
    • minUserAge

      public int minUserAge
      The minimum age of a user to be able to accept the terms; 0 if any.
    • showPopup

      public boolean showPopup
      True, if a blocking popup with terms of service must be shown to the user.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • TermsOfService

      public TermsOfService()
      Contains Telegram terms of service.
    • TermsOfService

      public TermsOfService(TdApi.FormattedText text, int minUserAge, boolean showPopup)
      Contains Telegram terms of service.
      Parameters:
      text - FormattedText Text of the terms of service.
      minUserAge - int The minimum age of a user to be able to accept the terms; 0 if any.
      showPopup - boolean True, if a blocking popup with terms of service must be shown to the user.
    • TermsOfService

      public TermsOfService(DataInput input) throws IOException
      Contains Telegram terms of service.
      Throws:
      IOException
  • Method Details