Class TdApi.SendPhoneNumberCode

Enclosing class:
TdApi

public static class TdApi.SendPhoneNumberCode extends TdApi.Function<TdApi.AuthenticationCodeInfo>
Sends a code to the specified phone number. Aborts previous phone number verification if there was one. On success, returns information about the sent code.

Returns AuthenticationCodeInfo

  • Field Details

    • phoneNumber

      public String phoneNumber
      The phone number, in international format.
    • settings

      Settings for the authentication of the user's phone number; pass null to use default settings.
    • type

      Type of the request for which the code is sent.
    • CONSTRUCTOR

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

    • SendPhoneNumberCode

      public SendPhoneNumberCode()
      Default constructor for a function, which sends a code to the specified phone number. Aborts previous phone number verification if there was one. On success, returns information about the sent code.

      Returns AuthenticationCodeInfo

    • SendPhoneNumberCode

      public SendPhoneNumberCode(String phoneNumber, TdApi.PhoneNumberAuthenticationSettings settings, TdApi.PhoneNumberCodeType type)
      Creates a function, which sends a code to the specified phone number. Aborts previous phone number verification if there was one. On success, returns information about the sent code.

      Returns AuthenticationCodeInfo

      Parameters:
      phoneNumber - The phone number, in international format.
      settings - Settings for the authentication of the user's phone number; pass null to use default settings.
      type - Type of the request for which the code is sent.
  • 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