From d99574239bccbb7936f1f2ccbefc7ee99b63c505 Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Plogmann Date: Mon, 24 Apr 2017 20:17:07 +0200 Subject: [PATCH] fixed syntax issues --- plugins/Telegram/Telegram.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/Telegram/Telegram.py b/plugins/Telegram/Telegram.py index 0b4c053..484880c 100644 --- a/plugins/Telegram/Telegram.py +++ b/plugins/Telegram/Telegram.py @@ -90,7 +90,7 @@ def run(typ,freq,data): bot = telegram.Bot(token='%s' % BOTTokenAPIKey) # Send message to chat via Telegram BOT API logging.debug("Send message to chat via Telegram BOT API") - bot.sendMessage('%s' % BOTChatIDAPIKey, "text") + bot.sendMessage('%s' % BOTChatIDAPIKey, text) # Generate location information only for specific RIC if data["ric"] == RICforLocationAPIKey: @@ -126,7 +126,7 @@ def run(typ,freq,data): bot = telegram.Bot(token='%s' % BOTTokenAPIKey) # Send message to chat via Telegram BOT API logging.debug("Send message to chat via Telegram BOT API") - bot.sendMessage('%s' % BOTChatIDAPIKey, "text") + bot.sendMessage('%s' % BOTChatIDAPIKey, text) elif typ == "ZVEI": logging.debug("Compose output from ZVEI-message") # compose message content @@ -138,7 +138,7 @@ def run(typ,freq,data): bot = telegram.Bot(token='%s' % BOTTokenAPIKey) # Send message to chat via Telegram BOT API logging.debug("Send message to chat via Telegram BOT API") - bot.sendMessage('%s' % BOTChatIDAPIKey, "text") + bot.sendMessage('%s' % BOTChatIDAPIKey, text) else: logging.warning("Invalid Typ: %s", typ) except Unauthorized: