-
Notifications
You must be signed in to change notification settings - Fork 11
send phone number verification code
Alexey Kravtsov edited this page May 19, 2020
·
1 revision
libtd-ktx / kotlinx.telegram.coroutines / sendPhoneNumberVerificationCode
suspend fun
TelegramFlow
.sendPhoneNumberVerificationCode(phoneNumber:
String
?, settings:
PhoneNumberAuthenticationSettings
?):
AuthenticationCodeInfo
Suspend function, which sends a code to verify a phone number to be added to a user's Telegram Passport.
phoneNumber
- The phone number of the user, in international format.
settings
- Settings for the authentication of the user's phone number.
Return AuthenticationCodeInfo Information about the authentication code that was sent.