public static class TdApi.TermsOfService extends TdApi.Object
Modifier and Type | Field and Description |
---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
int |
minUserAge
The minimum age of a user to be able to accept the terms; 0 if any.
|
boolean |
showPopup
True, if a blocking popup with terms of service must be shown to the user.
|
TdApi.FormattedText |
text
Text of the terms of service.
|
Constructor and Description |
---|
TermsOfService()
Contains Telegram terms of service.
|
TermsOfService(TdApi.FormattedText text,
int minUserAge,
boolean showPopup)
Contains Telegram terms of service.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public TdApi.FormattedText text
public int minUserAge
public boolean showPopup
public static final int CONSTRUCTOR
public TermsOfService()
public TermsOfService(TdApi.FormattedText text, int minUserAge, boolean showPopup)
text
- Text of the terms of service.minUserAge
- The minimum age of a user to be able to accept the terms; 0 if any.showPopup
- True, if a blocking popup with terms of service must be shown to the user.public int getConstructor()
getConstructor
in class TdApi.Object