CheckRecoveryPasswordRequest

Only users can use this request. See code examples.

---functions---
auth.checkRecoveryPassword#0d36bf79 code:string = Bool

Returns

Bool

This type has no instances available.

Parameters

codestring

Known RPC errors

This request can cause 1 known error:

PasswordRecoveryExpiredErrorThe recovery code has expired.

You can import these from telethon.errors.

Example

from telethon.sync import TelegramClient
from telethon import functions, types

with TelegramClient(name, api_id, api_hash) as client:
    result = client(functions.auth.CheckRecoveryPasswordRequest(
        code='some string here'
    ))
    print(result)