Link Search Menu Expand Document

Method: account.resetPassword

Back to methods index

Initiate a 2FA password reset: can only be used if the user is already logged-in, see here for more info »

Return type: account.ResetPasswordResult

Can bots use this method: NO

MadelineProto Example (now async for huge speed and parallelism!):

if (!file_exists('madeline.php')) {
    copy('', 'madeline.php');
include 'madeline.php';

$MadelineProto = new \danog\MadelineProto\API('session.madeline');

$account_ResetPasswordResult = $MadelineProto->account->resetPassword();