Module tdlight.api

Class TdApi.CheckAuthenticationBotToken

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function<TdApi.Ok>
it.tdlight.jni.TdApi.CheckAuthenticationBotToken
Enclosing class:
TdApi

public static final class TdApi.CheckAuthenticationBotToken extends TdApi.Function<TdApi.Ok>
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 Details

  • 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

      public CheckAuthenticationBotToken(String token)
      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

      public CheckAuthenticationBotToken(DataInput input) throws IOException
      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
      Throws:
      IOException
  • Method Details