auth.cancelCode #

Cancel the login verification code

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
auth.cancelCode#1f040578 phone_number:string phone_code_hash:string = Bool;

Parameters #

NameTypeDescription
phone_numberstringPhone number
phone_code_hashstringPhone code hash from auth.sendCode

Result #

Bool

Only users can use this method #

This method can be invoked over an unauthenticated connection » #

Possible errors #

CodeTypeDescription
400PHONE_CODE_EXPIREDThe phone code you provided has expired.
406PHONE_NUMBER_INVALIDThe phone number is invalid.

auth.sendCode #

Send the verification code for login