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
Name | Type | Description |
---|---|---|
old_password | string | Previous password of the user. |
new_password | string | New password of the user; may be empty to remove the password. |
new_hint | string | New password hint; may be empty. |
set_recovery_email_address | bool | Pass true if the recovery email address should be changed. |
new_recovery_email_address | string | New recovery email address; may be empty. |
More details on telegram’s documentation.