fix: solve captcha

This commit is contained in:
March 7th 2022-12-09 23:04:53 +07:00
parent a3ce786fe6
commit 6be4c4b077

View File

@ -356,7 +356,7 @@ class RequestHandler {
data?.captcha_service &&
this.manager.client.options.captchaService &&
request.retries < 4 &&
captchaMessage.includes(data.captcha_key[0])
captchaMessage.some(s => data.captcha_key[0].includes(s))
) {
// Retry the request after a captcha is solved
this.manager.client.emit(