-
Notifications
You must be signed in to change notification settings - Fork 11
set recovery email address
libtd-ktx / kotlinx.telegram.coroutines / setRecoveryEmailAddress
suspend fun
TelegramFlow
.setRecoveryEmailAddress(password:
String
?, newRecoveryEmailAddress:
String
?):
PasswordState
Suspend function, which changes the 2-step verification recovery email address of the user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed. If newRecoveryEmailAddress is the same as the email address that is currently set up, this call succeeds immediately and aborts all other requests waiting for an email confirmation.
password
- Password of the current user.
newRecoveryEmailAddress
- New recovery email address.
Return PasswordState Represents the current state of 2-step verification.