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 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
      Throws:
      IOException
  • Method Details