Link Search Menu Expand Document

Method: auth.importLoginToken

Back to methods index

Login using a redirected login token, generated in case of DC mismatch during QR code login.

For more info, see login via QR code.


tokenbytesLogin tokenYes

Return type: auth.LoginToken

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');

$auth_LoginToken = $MadelineProto->auth->importLoginToken(token: 'bytes', );