Package it.tdlight.jni
Class TdApi.CheckAuthenticationBotToken
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function
it.tdlight.jni.TdApi.CheckAuthenticationBotToken
- Enclosing class:
- TdApi
public static class TdApi.CheckAuthenticationBotToken extends TdApi.Function
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
Fields Modifier and Type Field Description static int
CONSTRUCTOR
String
token
The bot token. -
Constructor Summary
Constructors Constructor Description CheckAuthenticationBotToken()
Checks the authentication token of a bot; to log in as a bot.CheckAuthenticationBotToken(DataInput input)
CheckAuthenticationBotToken(String token)
Checks the authentication token of a bot; to log in as a bot. -
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutput output)
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:
- Constant Field Values
-
-
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.Returns
Ok
-
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.Returns
Ok
- Parameters:
token
- String The bot token.
-
CheckAuthenticationBotToken
- 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()
-