MadelineProtoDocs/old_docs/API_docs_v57/constructors/auth.passwordRecovery.md
2019-12-27 18:25:37 +01:00

1.1 KiB

title description image
auth.passwordRecovery Recovery info of a [2FA password](https://core.telegram.org/api/srp), only for accounts with a [recovery email configured](https://core.telegram.org/api/srp#email-verification). https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: auth.passwordRecovery

Back to constructors index

Recovery info of a 2FA password, only for accounts with a recovery email configured.

Attributes:

Name Type Required Description
email_pattern string Yes The email to which the recovery code was sent must match this pattern.

Type: auth.PasswordRecovery

Example:

$auth.passwordRecovery = ['_' => 'auth.passwordRecovery', 'email_pattern' => 'string'];

Or, if you're into Lua:

auth.passwordRecovery={_='auth.passwordRecovery', email_pattern='string'}