account.UpdatePasswordSettings
- class pyrogram.raw.functions.account.UpdatePasswordSettings
Set a new 2FA password
- Details:
Layer:
223ID:
A59B102F
- Parameters:
password (
InputCheckPasswordSRP) – The old password (see SRP)new_settings (
account.PasswordInputSettings) – The new password (see SRP)
- Returns:
bool
TL Schema
account.updatePasswordSettings#a59b102f
password:InputCheckPasswordSRP
new_settings:account.PasswordInputSettings
= Bool
Parameter Tree
UpdatePasswordSettings
├── password →
InputCheckPasswordSRP│ ├──
InputCheckPasswordEmpty│ └──
InputCheckPasswordSRP│ ├── srp_id →
long│ ├── A →
bytes│ └── M1 →
bytes└── new_settings →
account.PasswordInputSettings├── new_algo →
PasswordKdfAlgo (optional)│ ├──
PasswordKdfAlgoUnknown│ ├── salt1 →
bytes│ ├── salt2 →
bytes│ ├── g →
int│ └── p →
bytes├── new_password_hash →
bytes (optional)├── hint →
string (optional)├── email →
string (optional)└── new_secure_settings →
SecureSecretSettings (optional)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
),
)
)