check_recovery_password()

async Client.check_recovery_password()

Check if the 2FA recovery code is valid before passing it to recover_password.

Usable by Users Bots
Parameters:

code (str) – Code received via email.

Returns:

bool – On success, True is returned.

Example

valid = await app.check_recovery_password("123456")