account.verifyPhone
验证电报护照的电话号码。
验证电报电话号码 [护照](https://core.telegram.org/passport.md)。
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
phone_number | string | 是的 | 电话号码 |
phone_code_hash | string | 是的 | 从呼叫 [account.sendVerifyPhoneCode](https://core.telegram.org/method/account.sendVerifyPhoneCode.md) 收到的电话代码哈希 |
phone_code | string | 是的 | 调用 [account.sendVerifyPhoneCode](https://core.telegram.org/method/account.sendVerifyPhoneCode.md) 后收到的代码 |
回应
Bool
MTProto RPC
- 400 · PHONE_CODE_EMPTY — phone_code 缺失。
- 400·PHONE_CODE_EXPIRED — 您提供的电话号码已过期。
- 400·PHONE_NUMBER_INVALID — 电话号码无效。