Module tdlight.api

Class TdApi.CheckAuthenticationCode

Enclosing class:
TdApi

public static final class TdApi.CheckAuthenticationCode extends TdApi.Function<TdApi.Ok>
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:
  • 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
      Checks the authentication code. Works only when the current authorization state is authorizationStateWaitCode.

      Returns Ok

      Throws:
      IOException
  • Method Details