recoverPassword - libtd-ktx

Kotlin Coroutines extensions for Telegram API TDLib (Telegram Database library)


libtd-ktx / kotlinx.telegram.coroutines / recoverPassword

recoverPassword

suspend fun TelegramFlow.recoverPassword(recoveryCode: String?): PasswordState

Suspend function, which recovers the password using a recovery code sent to an email address that was previously set up.

Parameters

recoveryCode - Recovery code to check.

Return PasswordState Represents the current state of 2-step verification.