From 006cfc71970e20dcc1201ef33f6125d2e4898e9f Mon Sep 17 00:00:00 2001 From: sharkykh Date: Wed, 11 Jul 2018 01:43:08 +0300 Subject: [PATCH] Fix Telegram message encoding --- medusa/notifiers/telegram.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/medusa/notifiers/telegram.py b/medusa/notifiers/telegram.py index 85172e5ba1d..fd8d6eea84f 100644 --- a/medusa/notifiers/telegram.py +++ b/medusa/notifiers/telegram.py @@ -59,7 +59,7 @@ def _send_telegram_msg(self, title, msg, user_id=None, api_key=None): log.debug('Telegram in use with API KEY: {0}', api_key) - message = '%s : %s' % (title.encode(), msg.encode()) + message = '{0} : {1}'.format(title, msg).encode('utf-8') payload = urlencode({'chat_id': user_id, 'text': message}) telegram_api = 'https://api.telegram.org/bot%s/%s'