auth.RecoverPassword
- class pyrogram.raw.functions.auth.RecoverPassword
Reset the 2FA password using the recovery code sent using auth.requestPasswordRecovery.
- Details:
Layer:
223ID:
37096C70
- Parameters:
code (
str) – Code received via emailnew_settings (
account.PasswordInputSettings, optional) – New password
- Returns:
TL Schema
auth.recoverPassword#37096c70
flags:#
code:string
new_settings:flags.0?account.PasswordInputSettings
= auth.Authorization
Parameter Tree
RecoverPassword
├── code →
string└── new_settings →
account.PasswordInputSettings (optional)├── 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(
RecoverPassword(
code="text",
new_settings=PasswordInputSettings(
new_algo=None,
new_password_hash=None,
hint=None,
email=None,
new_secure_settings=None
),
)
)