auth.RecoverPassword

class pyrogram.raw.functions.auth.RecoverPassword

Reset the 2FA password using the recovery code sent using auth.requestPasswordRecovery.

Details:
  • Layer: 223

  • ID: 37096C70

Parameters:
Returns:

auth.Authorization

TL Schema

auth.recoverPassword#37096c70
flags:#
code:string
new_settings:flags.0?account.PasswordInputSettings

= auth.Authorization

Parameter Tree

RecoverPassword
├── codestring
└── new_settingsaccount.PasswordInputSettings (optional)
├── 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(
    RecoverPassword(
        code="text",
        new_settings=PasswordInputSettings(
            new_algo=None,
            new_password_hash=None,
            hint=None,
            email=None,
            new_secure_settings=None
        ),
    )
)