TDLib v0.0.2 TDLib.Method.SetPassword View Source

Changes the password for the user. If a new recovery email address is specified, then the error EMAIL_UNCONFIRMED is returned and the password change will not be applied until the new recovery email address has been confirmed. The application should periodically call getPasswordState to check whether the new email address has been confirmed. Returns object_ptr.

NameTypeDescription
old_passwordstringPrevious password of the user.
new_passwordstringNew password of the user; may be empty to remove the password.
new_hintstringNew password hint; may be empty.
set_recovery_email_addressboolPass true if the recovery email address should be changed.
new_recovery_email_addressstringNew recovery email address; may be empty.

More details on telegram’s documentation.