onSolveDeviceVerification

处理设备验证. 通常需要覆盖此函数. 此函数为 open 是为了兼容旧代码 (2.13 以前).

设备验证的类型可在 DeviceVerificationRequests 查看.

异常类型

抛出一个 LoginFailedException 以正常地终止登录, 并可建议系统进行重连或停止 bot (通过 LoginFailedException.killBot). 例如抛出 RetryLaterException 可让 bot 重新进行一次登录.

抛出任意其他 Throwable 将视为验证码解决器的自身错误.

Return

验证结果, 可通过解决 DeviceVerificationRequests 获得.

Since

2.13

Throws

LoginFailedException