RequestPasswordRecoveryRequest

Only users can use this method. See code examples.

---functions---
auth.requestPasswordRecovery#d897bc66 = auth.PasswordRecovery

Returns

auth.PasswordRecovery

This type can only be an instance of:

PasswordRecovery

Parameters

This request takes no input parameters.

Known RPC errors

This request can cause 2 known errors:

PasswordEmptyErrorThe provided password is empty.
PasswordRecoveryNaError.

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.RequestPasswordRecoveryRequest())
    print(result.stringify())