account.updatePasswordSettings
Set a new 2FA password
| الاسم | النوع | مطلوب | الوصف |
|---|---|---|---|
password | InputCheckPasswordSRP | أيوه | The old password (see [SRP](https://core.telegram.org/api/srp.md)) |
new_settings | account.PasswordInputSettings | أيوه | The new password (see [SRP](https://core.telegram.org/api/srp.md)) |
الردود
Bool
MTProto RPC
- 400 · EMAIL_INVALID — The specified email is invalid.
- 400 · EMAIL_UNCONFIRMED — Email unconfirmed.
- 400 · EMAIL_UNCONFIRMED_%d — The provided email isn't confirmed, %d is the length of the verification code that was just sent to the email: use [account.verifyEmail](https://core.telegram.org/method/account.verifyEmail.md) to enter the received verification code and enable the recovery email.
- 400 · NEW_SALT_INVALID — The new salt is invalid.
- 400 · NEW_SETTINGS_EMPTY — No password is set on the current account, and no new password was specified in new_settings.
- 400 · NEW_SETTINGS_INVALID — The new password settings are invalid.
- 400 · PASSWORD_HASH_INVALID — The provided password hash is invalid.
- 400 · SRP_ID_INVALID — Invalid SRP ID provided.
- 400 · SRP_PASSWORD_CHANGED — Password has changed.