fix: captcha solver

This commit is contained in:
Elysia
2023-04-07 22:17:23 +07:00
parent 03fe959be5
commit 288be9b0a1
4 changed files with 4 additions and 4 deletions

View File

@@ -106,7 +106,7 @@ class APIRequest {
if (captchaKey && typeof captchaKey == 'string') {
if (!this.options.data) this.options.data = {};
// Delete cookie (https://t.me/DMDGOBugsAndFeatures/626) Wtf Unknown Message Error ???
// headers.Cookie = undefined;
headers.Cookie = undefined;
this.options.data.captcha_key = captchaKey;
if (captchaRqtoken) this.options.data.captcha_rqtoken = captchaRqtoken;
}

View File

@@ -398,7 +398,7 @@ class RequestHandler {
data,
this.manager.client.options.http.headers['User-Agent'],
);
await this.manager.client.sleep(5_000);
// Sleep: await this.manager.client.sleep(5_000);
this.manager.client.emit(
DEBUG,
`Captcha details: