auth.checkRecoveryPassword
在将使用 auth.requestPasswordRecovery 发送的 2FA 恢复代码传递给 auth.recoverPassword 之前,检查其是否有效。
检查使用 [auth.requestPasswordRecovery](https://core.telegram.org/method/auth.requestPasswordRecovery.md) 发送的 [2FA 恢复代码](https://core.telegram.org/api/srp.md) 是否有效,然后再将其传递给 [auth.recoverPassword](https://core.telegram.org/method/auth.recoverPassword.md)。
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
code | string | 是的 | 通过电子邮件收到的代码 |
回应
Bool
MTProto RPC
- 400 · CODE_EMPTY — 提供的代码为空。
- 400 · PASSWORD_RECOVERY_EXPIRED — 恢复代码已过期。