mirror of
https://github.com/aljazceru/chatgpt-telegram-bot.git
synced 2025-12-22 23:25:41 +01:00
add Accept-Encoding: utf-8 to header
reason for this change is avoiding to get unicode escape characters in response for non-ANSI characters potential fix for issue #541
This commit is contained in:
@@ -42,7 +42,8 @@ class DeeplTranslatePlugin(Plugin):
|
||||
headers = {
|
||||
"Authorization": f"DeepL-Auth-Key {self.api_key}",
|
||||
"User-Agent": "chatgpt-telegram-bot",
|
||||
"Content-Type": "application/x-www-form-urlencoded"
|
||||
"Content-Type": "application/x-www-form-urlencoded",
|
||||
"Accept-Encoding": "utf-8"
|
||||
}
|
||||
data = {
|
||||
"text": kwargs['text'],
|
||||
|
||||
Reference in New Issue
Block a user