account.changePhone
Change the phone number of the current account
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
phone_number | string | はい | New phone number |
phone_code_hash | string | はい | Phone code hash received when calling [account.sendChangePhoneCode](https://core.telegram.org/method/account.sendChangePhoneCode.md) |
phone_code | string | はい | Phone code received when calling [account.sendChangePhoneCode](https://core.telegram.org/method/account.sendChangePhoneCode.md) |
レスポンス
User
MTProto RPC
- 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.