Link Search Menu Expand Document

Method: auth.signIn

Back to methods index

You cannot use this method directly, use the completePhoneLogin method instead (see for more info)


phone_numberstringPhone number in the international formatOptional
phone_code_hashstringSMS-message ID, obtained from auth.sendCodeOptional
phone_codestringValid numerical code from the SMS-messageOptional
email_verificationEmailVerificationEmail verification code or tokenOptional

Return type: auth.Authorization

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_Authorization = $MadelineProto->auth->signIn(phone_number: 'string', phone_code_hash: 'string', phone_code: 'string', email_verification: $EmailVerification, );