-
Notifications
You must be signed in to change notification settings - Fork 11
change phone number
Alexey Kravtsov edited this page May 19, 2020
·
1 revision
libtd-ktx / kotlinx.telegram.coroutines / changePhoneNumber
suspend fun
TelegramFlow
.changePhoneNumber(phoneNumber:
String
?, settings:
PhoneNumberAuthenticationSettings
?):
AuthenticationCodeInfo
Suspend function, which changes the phone number of the user and sends an authentication code to the user's new phone number. On success, returns information about the sent code.
phoneNumber
- The new 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.