- Enclosing class:
- TdApi
Checks the authentication token of a
bot; to log in as a bot. Works only
when the current authorization state
is authorizationStateWaitPhoneNumber.
Can be used instead of
setAuthenticationPhoneNumber and
checkAuthenticationCode to log in.
Returns
Ok
-
Field Summary
-
Constructor Summary
ConstructorDescriptionChecks the authentication token of a bot; to log in as a bot.Checks the authentication token of a bot; to log in as a bot.Checks the authentication token of a bot; to log in as a bot. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
token
The bot token. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
CheckAuthenticationBotToken
public CheckAuthenticationBotToken()Checks the authentication token of a bot; to log in as a bot. Works only when the current authorization state is authorizationStateWaitPhoneNumber. Can be used instead of setAuthenticationPhoneNumber and checkAuthenticationCode to log in. ReturnsOk
-
CheckAuthenticationBotToken
Checks the authentication token of a bot; to log in as a bot. Works only when the current authorization state is authorizationStateWaitPhoneNumber. Can be used instead of setAuthenticationPhoneNumber and checkAuthenticationCode to log in. ReturnsOk
- Parameters:
token
- String The bot token.
-
CheckAuthenticationBotToken
Checks the authentication token of a bot; to log in as a bot. Works only when the current authorization state is authorizationStateWaitPhoneNumber. Can be used instead of setAuthenticationPhoneNumber and checkAuthenticationCode to log in. ReturnsOk
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-