Class TdApi.CheckAuthenticationWebToken

Enclosing class:
TdApi

public static class TdApi.CheckAuthenticationWebToken extends TdApi.Function<TdApi.Ok>
Checks a web token to log in to the corresponding account; for official Telegram apps only. Works only when the current authorization state is authorizationStateWaitPhoneNumber or authorizationStateWaitOtherDeviceConfirmation.

Returns Ok

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Identifier uniquely determining type of the object.
    int
    Identifier of the datacenter of the user.
    The token to check.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor for a function, which checks a web token to log in to the corresponding account; for official Telegram apps only.
    Creates a function, which checks a web token to log in to the corresponding account; for official Telegram apps only.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns an identifier uniquely determining type of the object.

    Methods inherited from class org.drinkless.tdlib.TdApi.Function

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • token

      public String token
      The token to check.
    • dcId

      public int dcId
      Identifier of the datacenter of the user.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • CheckAuthenticationWebToken

      public CheckAuthenticationWebToken()
      Default constructor for a function, which checks a web token to log in to the corresponding account; for official Telegram apps only. Works only when the current authorization state is authorizationStateWaitPhoneNumber or authorizationStateWaitOtherDeviceConfirmation.

      Returns Ok

    • CheckAuthenticationWebToken

      public CheckAuthenticationWebToken(String token, int dcId)
      Creates a function, which checks a web token to log in to the corresponding account; for official Telegram apps only. Works only when the current authorization state is authorizationStateWaitPhoneNumber or authorizationStateWaitOtherDeviceConfirmation.

      Returns Ok

      Parameters:
      token - The token to check.
      dcId - Identifier of the datacenter of the user.
  • Method Details

    • getConstructor

      public int getConstructor()
      Description copied from class: TdApi.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR