From 8ebfa20db0bd1b78c2e94098c2f0d5c3e2463325 Mon Sep 17 00:00:00 2001 From: devin Date: Wed, 28 Oct 2015 20:36:09 -0400 Subject: [PATCH] Fixed notifications, and added strings to describe bot token and chat id --- plexpy/notifiers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plexpy/notifiers.py b/plexpy/notifiers.py index 9b211239..82dc281c 100644 --- a/plexpy/notifiers.py +++ b/plexpy/notifiers.py @@ -1460,7 +1460,7 @@ class TELEGRAM(object): http_handler.request("POST", "/bot%s/%s" % (self.bot_token, "sendMessage"), headers={'Content-type': "application/x-www-form-urlencoded"}, - body=json.dumps(data)) + body=urlencode(data)) response = http_handler.getresponse() request_status = response.status @@ -1490,13 +1490,13 @@ class TELEGRAM(object): config_option = [{'label': 'Telegram Bot Token', 'value': self.bot_token, 'name': 'telegram_bot_token', - 'description': 'Your Bot Token here.', + 'description': 'Your bot token. Contact @BotFather on Telegram to get one.', 'input_type': 'text' }, {'label': 'Telegram Chat ID', 'value': self.chat_id, 'name': 'telegram_chat_id', - 'description': 'Your Telegram Chat ID or Group ID.', + 'description': 'Your Telegram Chat ID or Group ID. Contact @myidbot on Telegram to get an ID.', 'input_type': 'text' } ]