lib/tdlib/client_methods.rb
def recover_password(recovery_code:, new_password: nil, new_hint: nil)
    broadcast('@type'         => 'recoverPassword',
              'recovery_code' => recovery_code,
              'new_password'  => new_password,
              'new_hint'      => new_hint)
  end
# Recovers the 2-step verification password using a recovery code sent to an email address that was previously set
#   up.
#
# @param recovery_code [TD::Types::String] Recovery code to check.
# @param new_password [TD::Types::String, nil] New password of the user; may be empty to remove the password.
# @param new_hint [TD::Types::String, nil] New password hint; may be empty.
# @return [TD::Types::PasswordState]
Recovers the 2-step verification password using a recovery code sent to an email address that was previously set
up.
Recovers the 2 - step verification password using a recovery code sent to an email address that was previously set up .
def recover_password(recovery_code:, new_password: nil, new_hint: nil)
    broadcast('@type'         => 'recoverPassword',
              'recovery_code' => recovery_code,
              'new_password'  => new_password,
              'new_hint'      => new_hint)
  end
def recover_password ( recovery_code : , new_password : nil , new_hint : nil ) broadcast ( '@type' => 'recoverPassword' , 'recovery_code' => recovery_code , 'new_password' => new_password , 'new_hint' => new_hint ) end
Recovers the 2-step verification password using a recovery code sent to an email address that was previously set
up.
Recovers the 2 - step verification password using a recovery code sent to an email address that was previously set up .
None
TD::Types::PasswordState
recovery_code
Recovery code to check.
Recovery code to check .
new_password
New password of the user; may be empty to remove the password.
New password of the user ; may be empty to remove the password .
new_hint
New password hint; may be empty.
New password hint ; may be empty .