account.verifyPhone

Verify a phone number for telegram passport.

 اسکیمای روش از لایه 81 در دسترس است. تغییر »

Parameters

Name Type Description
phone_number string Phone number
phone_code_hash string Phone code hash received from the call to account.sendVerifyPhoneCode
phone_code string Code received after the call to account.sendVerifyPhoneCode

Result

Bool

Only users can use this method

Possible errors

Code Type Description
400 PHONE_CODE_EMPTY phone_code is missing.
400 PHONE_CODE_EXPIRED The phone code you provided has expired.
400 PHONE_NUMBER_INVALID The phone number is invalid.

Related pages

account.sendVerifyPhoneCode

Send the verification phone code for telegram passport.

Telegram Passport Manual