auth.CheckRecoveryPassword

class pyrogram.raw.functions.auth.CheckRecoveryPassword

Check if the 2FA recovery code sent using auth.requestPasswordRecovery is valid, before passing it to auth.recoverPassword.

Details:
  • Layer: 223

  • ID: D36BF79

Parameters:

code (str) – Code received via email

Returns:

bool

TL Schema

auth.checkRecoveryPassword#d36bf79
code:string

= Bool

Parameter Tree

CheckRecoveryPassword
└── codestring

Example

await app.invoke(
    CheckRecoveryPassword(
        code="text",
    )
)