added event / suject to notifcation text
This commit is contained in:
@@ -1455,7 +1455,7 @@ class TELEGRAM(object):
|
|||||||
http_handler = HTTPSConnection("api.telegram.org")
|
http_handler = HTTPSConnection("api.telegram.org")
|
||||||
|
|
||||||
data = {'chat_id': self.chat_id,
|
data = {'chat_id': self.chat_id,
|
||||||
'text': message.encode("utf-8")}
|
'text': event + ': ' + message.encode("utf-8")}
|
||||||
|
|
||||||
http_handler.request("POST",
|
http_handler.request("POST",
|
||||||
"/bot%s/%s" % (self.bot_token, "sendMessage"),
|
"/bot%s/%s" % (self.bot_token, "sendMessage"),
|
||||||
|
Reference in New Issue
Block a user