account.UpdatePasswordSettings

class pyrogram.raw.functions.account.UpdatePasswordSettings

Set a new 2FA password

Details:
  • Layer: 223

  • ID: A59B102F

Parameters:
Returns:

bool

TL Schema

account.updatePasswordSettings#a59b102f
password:InputCheckPasswordSRP
new_settings:account.PasswordInputSettings

= Bool

Parameter Tree

UpdatePasswordSettings
├── passwordInputCheckPasswordSRP
│ └── InputCheckPasswordSRP
│ ├── srp_idlong
│ ├── Abytes
│ └── M1bytes
└── new_settingsaccount.PasswordInputSettings
├── new_algoPasswordKdfAlgo (optional)
│ ├── salt1bytes
│ ├── salt2bytes
│ ├── gint
│ └── pbytes
├── new_password_hashbytes (optional)
├── hintstring (optional)
├── emailstring (optional)
└── new_secure_settingsSecureSecretSettings (optional)
├── secure_algoSecurePasswordKdfAlgo
├── secure_secretbytes
└── secure_secret_idlong

Example

await app.invoke(
    UpdatePasswordSettings(
        password=InputCheckPasswordEmpty(),
        new_settings=PasswordInputSettings(
            new_algo=None,
            new_password_hash=None,
            hint=None,
            email=None,
            new_secure_settings=None
        ),
    )
)