set_password


Description:

public async PasswordState set_password (string old_password, string new_password, string new_hint, bool set_recovery_email_address, string new_recovery_email_address) throws TDLibError

Changes the 2-step verification password for the current user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed

Parameters:

old_password

Previous 2-step verification password of the user

new_password

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

new_hint

New password hint; may be empty

set_recovery_email_address

Pass true to change also the recovery email address

new_recovery_email_address

New recovery email address; may be empty