Machine-readable version of this page: /method/account.changePhone.md.

account.changePhone

Change the phone number of the current account

 메서드 스키마는 레이어 20부터 사용할 수 있습니다. 전환 »

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

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_CODE_INVALID The provided phone code is invalid.
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