account.changePhone
更改当前账户的电话号码
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
phone_number | string | 是的 | 新电话号码 |
phone_code_hash | string | 是的 | 拨打 [account.sendChangePhoneCode](https://core.telegram.org/method/account.sendChangePhoneCode.md) 时收到的电话代码哈希 |
phone_code | string | 是的 | 拨打 [account.sendChangePhoneCode](https://core.telegram.org/method/account.sendChangePhoneCode.md) 时收到电话号码 |
回应
User
MTProto RPC
- 400 · PHONE_CODE_EMPTY — phone_code 缺失。
- 400·PHONE_CODE_EXPIRED — 您提供的电话号码已过期。
- 400·PHONE_CODE_INVALID — 提供的电话号码无效。
- 406·PHONE_NUMBER_INVALID — 电话号码无效。
- 400 · PHONE_NUMBER_OCCUPIED — 该电话号码已被使用。