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 Detail

      • phoneNumber

        public String phoneNumber
        The new phone number of the user in international format.
      • CONSTRUCTOR

        public static final int CONSTRUCTOR
        Identifier uniquely determining type of the object.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ChangePhoneNumber

        public ChangePhoneNumber()
        Default constructor for a function, which 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)
        Creates a function, which 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 - The new phone number of the user in international format.
        settings - Settings for the authentication of the user's phone number; pass null to use default settings.