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