Class TdApi.CheckAuthenticationCode

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function
it.tdlight.jni.TdApi.CheckAuthenticationCode
Enclosing class:
TdApi

public static class TdApi.CheckAuthenticationCode
extends TdApi.Function
Checks the authentication code. Works only when the current authorization state is authorizationStateWaitCode.

Returns Ok

  • Field Details

    • code

      public String code
      The verification code received via SMS, Telegram message, phone call, or flash call.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
      Constant Field Values
  • Constructor Details

    • CheckAuthenticationCode

      public CheckAuthenticationCode()
      Checks the authentication code. Works only when the current authorization state is authorizationStateWaitCode.

      Returns Ok

    • CheckAuthenticationCode

      public CheckAuthenticationCode​(String code)
      Checks the authentication code. Works only when the current authorization state is authorizationStateWaitCode.

      Returns Ok

      Parameters:
      code - String The verification code received via SMS, Telegram message, phone call, or flash call.
    • CheckAuthenticationCode

      public CheckAuthenticationCode​(DataInput input) throws IOException
      Throws:
      IOException
  • Method Details