Package org.drinkless.tdlib
Class TdApi.SendPhoneNumberVerificationCode
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.TdApi.SendPhoneNumberVerificationCode
-
- Enclosing class:
- TdApi
public static class TdApi.SendPhoneNumberVerificationCode extends TdApi.Function
Sends a code to verify a phone number to be added to a user's Telegram Passport.Returns
AuthenticationCodeInfo
-
-
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 SendPhoneNumberVerificationCode()Default constructor for a function, which sends a code to verify a phone number to be added to a user's Telegram Passport.SendPhoneNumberVerificationCode(String phoneNumber, TdApi.PhoneNumberAuthenticationSettings settings)Creates a function, which sends a code to verify a phone number to be added to a user's Telegram Passport.
-
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
-
SendPhoneNumberVerificationCode
public SendPhoneNumberVerificationCode()
Default constructor for a function, which sends a code to verify a phone number to be added to a user's Telegram Passport.Returns
AuthenticationCodeInfo
-
SendPhoneNumberVerificationCode
public SendPhoneNumberVerificationCode(String phoneNumber, TdApi.PhoneNumberAuthenticationSettings settings)
Creates a function, which sends a code to verify a phone number to be added to a user's Telegram Passport.Returns
AuthenticationCodeInfo- 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
-
-