Class TdApi.SendPhoneNumberCode
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Function<TdApi.AuthenticationCodeInfo>
dev.voroby.springframework.telegram.client.TdApi.SendPhoneNumberCode
- Enclosing class:
- TdApi
Sends a code to the specified phone number. Aborts previous phone number verification if there was one. On success, returns information about the sent code.
Returns AuthenticationCodeInfo
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.The phone number, in international format.Settings for the authentication of the user's phone number; pass null to use default settings.Type of the request for which the code is sent. -
Constructor Summary
ConstructorDescriptionDefault constructor for a function, which sends a code to the specified phone number.SendPhoneNumberCode
(String phoneNumber, TdApi.PhoneNumberAuthenticationSettings settings, TdApi.PhoneNumberCodeType type) Creates a function, which sends a code to the specified phone number. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Function
toString
-
Field Details
-
phoneNumber
The phone number, in international format. -
settings
Settings for the authentication of the user's phone number; pass null to use default settings. -
type
Type of the request for which the code is sent. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
SendPhoneNumberCode
public SendPhoneNumberCode()Default constructor for a function, which sends a code to the specified phone number. Aborts previous phone number verification if there was one. On success, returns information about the sent code.Returns
AuthenticationCodeInfo
-
SendPhoneNumberCode
public SendPhoneNumberCode(String phoneNumber, TdApi.PhoneNumberAuthenticationSettings settings, TdApi.PhoneNumberCodeType type) Creates a function, which sends a code to the specified phone number. Aborts previous phone number verification if there was one. On success, returns information about the sent code.Returns
AuthenticationCodeInfo
- Parameters:
phoneNumber
- The phone number, in international format.settings
- Settings for the authentication of the user's phone number; pass null to use default settings.type
- Type of the request for which the code is sent.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-