Skip to content

recoverPassword

Function · TDLib 1.8.67 · d1085f9c

Recovers the 2-step verification password using a recovery code sent to an email address that was previously set up

recoverPassword(
  recovery_code: string,
  new_password: string,
  new_hint: string
) → PasswordState

recovery_code

string

Recovery code to check

new_password

string

New 2-step verification password of the user; may be empty to remove the password

new_hint

string

New password hint; may be empty