fix: Unknown Message (2)
This commit is contained in:
		@@ -95,6 +95,8 @@ class APIRequest {
 | 
				
			|||||||
      headers['Content-Type'] = 'application/json';
 | 
					      headers['Content-Type'] = 'application/json';
 | 
				
			||||||
      if (captchaKey && typeof captchaKey == 'string') {
 | 
					      if (captchaKey && typeof captchaKey == 'string') {
 | 
				
			||||||
        if (!this.options.data) this.options.data = {};
 | 
					        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;
 | 
					        this.options.data.captcha_key = captchaKey;
 | 
				
			||||||
        if (captchaRqtoken) this.options.data.captcha_rqtoken = captchaRqtoken;
 | 
					        if (captchaRqtoken) this.options.data.captcha_rqtoken = captchaRqtoken;
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user