Package org.drinkless.tdlib
Class TdApi.ChangePhoneNumber
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.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 Summary
Fields Modifier and Type Field Description static intCONSTRUCTORIdentifier uniquely determining type of the object.StringphoneNumberThe new phone number of the user in international format.TdApi.PhoneNumberAuthenticationSettingssettingsSettings for the authentication of the user's phone number; pass null to use default settings.
-
Constructor Summary
Constructors Constructor Description 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.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
-
-
-
Field Detail
-
phoneNumber
public String phoneNumber
The new phone number of the user in international format.
-
settings
public TdApi.PhoneNumberAuthenticationSettings settings
Settings for the authentication of the user's phone number; pass null to use default settings.
-
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.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-