account.verifyPhone
Verify a phone number for telegram passport.
Example
TL schema
Parameters
Name
Type
Description
phone_number
Phone number
phone_code_hash
phone_code
Result
Possible errors
Code
Type
Description
400
PHONE_CODE_EXPIRED
The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars)
Can bots use this methd ?
yes
Related pages
Send the verification phone code for telegram passport.
Last updated
Was this helpful?