View Source ExTDLib.Method.SetPassword (ExTDLib v0.0.4)

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. Returns object_ptr<PasswordState>.

NameTypeDescription
old_passwordstringPrevious 2-step verification password of the user.
new_passwordstringNew 2-step verification password of the user; may be empty to remove the password.
new_hintstringNew password hint; may be empty.
set_recovery_email_addressboolPass true to change also the recovery email address.
new_recovery_email_addressstringNew recovery email address; may be empty.

More details on telegram's documentation.