mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-15 01:32:57 -07:00
set text format on encode
This commit is contained in:
parent
6cbfacaeae
commit
9cff20ca16
1 changed files with 1 additions and 1 deletions
|
@ -1455,7 +1455,7 @@ class TELEGRAM(object):
|
|||
http_handler = HTTPSConnection("api.telegram.org")
|
||||
|
||||
data = {'chat_id': self.chat_id,
|
||||
'text': event + ': ' + message.encode("utf-8")}
|
||||
'text': event.encode('utf-8') + ': ' + message.encode("utf-8")}
|
||||
|
||||
http_handler.request("POST",
|
||||
"/bot%s/%s" % (self.bot_token, "sendMessage"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue