fixed syntax issues

This commit is contained in:
Jan-Hendrik Plogmann 2017-04-24 20:17:07 +02:00
parent 4e1cf00cb3
commit d99574239b

View file

@ -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: