libtd-ktx / kotlinx.telegram.coroutines / sendPhoneNumberConfirmationCode
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.
Parameters
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.