fix: Unknown Message (2)

This commit is contained in:
Elysia 2023-02-10 17:53:12 +07:00
parent 92cc1afd7b
commit 779fc7a5f4

View File

@ -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;
}