Class TdApi.ChangePhoneNumber

Enclosing class:
TdApi

public static class TdApi.ChangePhoneNumber
extends TdApi.Function
Changes the phone number of the user and sends an authentication code to the user's new phone number. On success, returns information about the sent code.

Returns AuthenticationCodeInfo

  • Field Details

  • Constructor Details

    • ChangePhoneNumber

      public ChangePhoneNumber()
      Changes the phone number of the user and sends an authentication code to the user's new phone number. On success, returns information about the sent code.

      Returns AuthenticationCodeInfo

    • ChangePhoneNumber

      public ChangePhoneNumber​(String phoneNumber, TdApi.PhoneNumberAuthenticationSettings settings)
      Changes the phone number of the user and sends an authentication code to the user's new phone number. On success, returns information about the sent code.

      Returns AuthenticationCodeInfo

      Parameters:
      phoneNumber - String The new phone number of the user in international format.
      settings - PhoneNumberAuthenticationSettings Settings for the authentication of the user's phone number.
    • ChangePhoneNumber

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