account.changePhone

Change the phone number of the current account

 Method schema is available as of layer 20. Switch ยป

Parameters

Name Type Description
phone_number string New phone number
phone_code_hash string Phone code hash received when calling account.sendChangePhoneCode
phone_code string Phone code received when calling account.sendChangePhoneCode

Result

User

Possible errors

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

Related pages

account.sendChangePhoneCode

Verify a new phone number to associate to the current account