From 779fc7a5f4d4389851d0c21e50346df53fd1c041 Mon Sep 17 00:00:00 2001 From: Elysia <71698422+aiko-chan-ai@users.noreply.github.com> Date: Fri, 10 Feb 2023 17:53:12 +0700 Subject: [PATCH] fix: Unknown Message (2) --- src/rest/APIRequest.js | 2 ++ 1 file changed, 2 insertions(+) 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; }