account.verifyPhone #

Verify a phone number for telegram passport.

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
account.verifyPhone#4dd3a7f6 phone_number:string phone_code_hash:string phone_code:string = Bool;

Parameters #

NameTypeDescription
phone_numberstringPhone number
phone_code_hashstringPhone code hash received from the call to account.sendVerifyPhoneCode
phone_codestringCode received after the call to account.sendVerifyPhoneCode

Result #

Bool

Only users can use this method #

Possible errors #

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

account.sendVerifyPhoneCode #

Send the verification phone code for telegram passport.

Telegram Passport Manual #

Telegram Passport, a unified authorization method for services that require personal identification.