Package it.tdlight.jni
Class TdApi.SendPhoneNumberConfirmationCode
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function
it.tdlight.jni.TdApi.SendPhoneNumberConfirmationCode
- Enclosing class:
- TdApi
public static class TdApi.SendPhoneNumberConfirmationCode extends TdApi.Function
Sends phone number confirmation code.
Should be called when user presses
"https://t.me/confirmphone?phone=*******&hash=**********"
or "tg://confirmphone?phone=*******&hash=**********" link.
Returns AuthenticationCodeInfo
-
Field Summary
Fields Modifier and Type Field Description static int
CONSTRUCTOR
String
hash
Value of the "hash" parameter from the link.String
phoneNumber
Value of the "phone" parameter from the link.TdApi.PhoneNumberAuthenticationSettings
settings
Settings for the authentication of the user's phone number. -
Constructor Summary
Constructors Constructor Description SendPhoneNumberConfirmationCode()
Sends phone number confirmation code.SendPhoneNumberConfirmationCode(DataInput input)
SendPhoneNumberConfirmationCode(String hash, String phoneNumber, TdApi.PhoneNumberAuthenticationSettings settings)
Sends phone number confirmation code. -
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutput output)
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
hash
Value of the "hash" parameter from the link. -
phoneNumber
Value of the "phone" parameter from the link. -
settings
Settings for the authentication of the user's phone number. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
- Constant Field Values
-
-
Constructor Details
-
SendPhoneNumberConfirmationCode
public SendPhoneNumberConfirmationCode()Sends phone number confirmation code. Should be called when user presses "https://t.me/confirmphone?phone=*******&hash=**********" or "tg://confirmphone?phone=*******&hash=**********" link.Returns
AuthenticationCodeInfo
-
SendPhoneNumberConfirmationCode
public SendPhoneNumberConfirmationCode(String hash, String phoneNumber, TdApi.PhoneNumberAuthenticationSettings settings)Sends phone number confirmation code. Should be called when user presses "https://t.me/confirmphone?phone=*******&hash=**********" or "tg://confirmphone?phone=*******&hash=**********" link.Returns
AuthenticationCodeInfo
- Parameters:
hash
- String Value of the "hash" parameter from the link.phoneNumber
- String Value of the "phone" parameter from the link.settings
- PhoneNumberAuthenticationSettings Settings for the authentication of the user's phone number.
-
SendPhoneNumberConfirmationCode
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-