Package org.drinkless.tdlib
Class TdApi.SetAuthenticationPhoneNumber
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.TdApi.SetAuthenticationPhoneNumber
-
- Enclosing class:
- TdApi
public static class TdApi.SetAuthenticationPhoneNumber extends TdApi.Function
Sets the phone number of the user and sends an authentication code to the user. Works only when the current authorization state is authorizationStateWaitPhoneNumber, or if there is no pending authentication query and the current authorization state is authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword.Returns
Ok
-
-
Field Summary
Fields Modifier and Type Field Description static intCONSTRUCTORIdentifier uniquely determining type of the object.StringphoneNumberThe 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 SetAuthenticationPhoneNumber()Default constructor for a function, which sets the phone number of the user and sends an authentication code to the user.SetAuthenticationPhoneNumber(String phoneNumber, TdApi.PhoneNumberAuthenticationSettings settings)Creates a function, which sets the phone number of the user and sends an authentication code to the user.
-
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 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
-
SetAuthenticationPhoneNumber
public SetAuthenticationPhoneNumber()
Default constructor for a function, which sets the phone number of the user and sends an authentication code to the user. Works only when the current authorization state is authorizationStateWaitPhoneNumber, or if there is no pending authentication query and the current authorization state is authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword.Returns
Ok
-
SetAuthenticationPhoneNumber
public SetAuthenticationPhoneNumber(String phoneNumber, TdApi.PhoneNumberAuthenticationSettings settings)
Creates a function, which sets the phone number of the user and sends an authentication code to the user. Works only when the current authorization state is authorizationStateWaitPhoneNumber, or if there is no pending authentication query and the current authorization state is authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword.Returns
Ok- Parameters:
phoneNumber- The 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
-
-