Class TdApi.AgeVerificationParameters

java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.AgeVerificationParameters
Enclosing class:
TdApi

public static class TdApi.AgeVerificationParameters extends TdApi.Object
Describes parameters for age verification of the current user.
  • Field Details

    • minAge

      public int minAge
      The minimum age required to view restricted content.
    • verificationBotUsername

      public String verificationBotUsername
      Username of the bot which main Web App may be used to verify age of the user.
    • country

      public String country
      Unique name for the country or region, which legislation required age verification. May be used to get the corresponding localization key.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • AgeVerificationParameters

      public AgeVerificationParameters()
      Describes parameters for age verification of the current user.
    • AgeVerificationParameters

      public AgeVerificationParameters(int minAge, String verificationBotUsername, String country)
      Describes parameters for age verification of the current user.
      Parameters:
      minAge - The minimum age required to view restricted content.
      verificationBotUsername - Username of the bot which main Web App may be used to verify age of the user.
      country - Unique name for the country or region, which legislation required age verification. May be used to get the corresponding localization key.
  • Method Details

    • getConstructor

      public int getConstructor()
      Description copied from class: TdApi.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR