mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-15 01:32:57 -07:00
Fixed notifications, and added strings to describe bot token and chat id
This commit is contained in:
parent
5beb4876fb
commit
8ebfa20db0
1 changed files with 3 additions and 3 deletions
|
@ -1460,7 +1460,7 @@ class TELEGRAM(object):
|
||||||
http_handler.request("POST",
|
http_handler.request("POST",
|
||||||
"/bot%s/%s" % (self.bot_token, "sendMessage"),
|
"/bot%s/%s" % (self.bot_token, "sendMessage"),
|
||||||
headers={'Content-type': "application/x-www-form-urlencoded"},
|
headers={'Content-type': "application/x-www-form-urlencoded"},
|
||||||
body=json.dumps(data))
|
body=urlencode(data))
|
||||||
|
|
||||||
response = http_handler.getresponse()
|
response = http_handler.getresponse()
|
||||||
request_status = response.status
|
request_status = response.status
|
||||||
|
@ -1490,13 +1490,13 @@ class TELEGRAM(object):
|
||||||
config_option = [{'label': 'Telegram Bot Token',
|
config_option = [{'label': 'Telegram Bot Token',
|
||||||
'value': self.bot_token,
|
'value': self.bot_token,
|
||||||
'name': 'telegram_bot_token',
|
'name': 'telegram_bot_token',
|
||||||
'description': 'Your Bot Token here.',
|
'description': 'Your bot token. Contact <a href="http://telegram.me/BotFather">@BotFather</a> on Telegram to get one.',
|
||||||
'input_type': 'text'
|
'input_type': 'text'
|
||||||
},
|
},
|
||||||
{'label': 'Telegram Chat ID',
|
{'label': 'Telegram Chat ID',
|
||||||
'value': self.chat_id,
|
'value': self.chat_id,
|
||||||
'name': 'telegram_chat_id',
|
'name': 'telegram_chat_id',
|
||||||
'description': 'Your Telegram Chat ID or Group ID.',
|
'description': 'Your Telegram Chat ID or Group ID. Contact <a href="http://telegram.me/myidbot">@myidbot</a> on Telegram to get an ID.',
|
||||||
'input_type': 'text'
|
'input_type': 'text'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue