Package org.drinkless.tdlib
Class TdApi.CheckAuthenticationWebToken
- Enclosing class:
- TdApi
Checks a web token to log in to the corresponding account; for official Telegram apps only. Works only when the current authorization state is authorizationStateWaitPhoneNumber or authorizationStateWaitOtherDeviceConfirmation.
Returns Ok
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.intIdentifier of the datacenter of the user.The token to check. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which checks a web token to log in to the corresponding account; for official Telegram apps only.CheckAuthenticationWebToken(String token, int dcId) Creates a function, which checks a web token to log in to the corresponding account; for official Telegram apps only. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
token
The token to check. -
dcId
public int dcIdIdentifier of the datacenter of the user. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
CheckAuthenticationWebToken
public CheckAuthenticationWebToken()Default constructor for a function, which checks a web token to log in to the corresponding account; for official Telegram apps only. Works only when the current authorization state is authorizationStateWaitPhoneNumber or authorizationStateWaitOtherDeviceConfirmation.Returns
Ok -
CheckAuthenticationWebToken
Creates a function, which checks a web token to log in to the corresponding account; for official Telegram apps only. Works only when the current authorization state is authorizationStateWaitPhoneNumber or authorizationStateWaitOtherDeviceConfirmation.Returns
Ok- Parameters:
token- The token to check.dcId- Identifier of the datacenter of the user.
-
-
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
-