diff --git a/src/rest/APIRequest.js b/src/rest/APIRequest.js index e577289..e00b428 100644 --- a/src/rest/APIRequest.js +++ b/src/rest/APIRequest.js @@ -95,6 +95,8 @@ class APIRequest { headers['Content-Type'] = 'application/json'; 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; this.options.data.captcha_key = captchaKey; if (captchaRqtoken) this.options.data.captcha_rqtoken = captchaRqtoken; }