Package org.drinkless.tdlib
Class TdApi.AgeVerificationParameters
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.AgeVerificationParameters
- Enclosing class:
- TdApi
Describes parameters for age verification of the current user.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.Unique name for the country or region, which legislation required age verification.intThe minimum age required to view restricted content.Username of the bot which main Web App may be used to verify age of the user. -
Constructor Summary
ConstructorsConstructorDescriptionDescribes parameters for age verification of the current user.AgeVerificationParameters(int minAge, String verificationBotUsername, String country) Describes parameters for age verification of the current user. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
minAge
public int minAgeThe 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. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
AgeVerificationParameters
public AgeVerificationParameters()Describes parameters for age verification of the current user. -
AgeVerificationParameters
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.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-