-
Notifications
You must be signed in to change notification settings - Fork 11
send phone number confirmation code
Alexey Kravtsov edited this page May 19, 2020
·
1 revision
libtd-ktx / kotlinx.telegram.coroutines / sendPhoneNumberConfirmationCode
suspend fun
TelegramFlow
.sendPhoneNumberConfirmationCode(hash:
String
?, phoneNumber:
String
?, settings:
PhoneNumberAuthenticationSettings
?):
AuthenticationCodeInfo
Suspend function, which sends phone number confirmation code. Should be called when user presses "https://t.me/confirmphone?phone=*******&hash=" or"tg://confirmphone?phone=&hash=*******" link.
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.
Return AuthenticationCodeInfo Information about the authentication code that was sent.