fix: captcha solver
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
@@ -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:
|
||||
|
Reference in New Issue
Block a user