added event / suject to notifcation text

This commit is contained in:
Devin Buhl 2015-10-31 01:59:13 -04:00
parent 8ebfa20db0
commit 6cbfacaeae

View file

@ -1455,7 +1455,7 @@ class TELEGRAM(object):
http_handler = HTTPSConnection("api.telegram.org")
data = {'chat_id': self.chat_id,
'text': message.encode("utf-8")}
'text': event + ': ' + message.encode("utf-8")}
http_handler.request("POST",
"/bot%s/%s" % (self.bot_token, "sendMessage"),