Interface SetPassword

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. Request type for Tdjson#setPassword.

interface SetPassword {
    @type: "setPassword";
    new_hint: string;
    new_password: string;
    new_recovery_email_address: string;
    old_password: string;
    set_recovery_email_address?: boolean;
}

Properties

@type: "setPassword"
new_hint: string

New password hint; may be empty.

new_password: string

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

new_recovery_email_address: string

New recovery email address; may be empty.

old_password: string

Previous 2-step verification password of the user.

set_recovery_email_address?: boolean

Pass true to change also the recovery email address.