From 9cff20ca160d2b3e9efcab999d8f9c1b8ed80e96 Mon Sep 17 00:00:00 2001 From: Devin Buhl Date: Sun, 1 Nov 2015 11:03:36 -0500 Subject: [PATCH] set text format on encode --- plexpy/notifiers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexpy/notifiers.py b/plexpy/notifiers.py index 0ef56425..1efefb29 100644 --- a/plexpy/notifiers.py +++ b/plexpy/notifiers.py @@ -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"),