From 91fd449bee1db3bece397027b69353e5aab8ab49 Mon Sep 17 00:00:00 2001 From: PeterLaemmle Date: Fri, 30 Sep 2016 20:54:35 +0200 Subject: [PATCH] Update sendTelegram.py --- plugins/sendTelegram/sendTelegram.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/sendTelegram/sendTelegram.py b/plugins/sendTelegram/sendTelegram.py index 207cae7..68bb0a9 100644 --- a/plugins/sendTelegram/sendTelegram.py +++ b/plugins/sendTelegram/sendTelegram.py @@ -45,11 +45,11 @@ def onLoad(): global RICforLocationAPIKey global GoogleAPIKey - configHandler.checkConfig("sendTelegram") - BOTTokenAPIKey = globals.config.get("sendTelegram","BOTTokenAPIKey") - BOTChatIDAPIKey = globals.config.get("sendTelegram","BOTChatIDAPIKey") - RICforLocationAPIKey = globals.config.get("sendTelegram","RICforLocationAPIKey") - GoogleAPIKey = globals.config.get("sendTelegram","GoogleAPIKey") + configHandler.checkConfig("Telegram") + BOTTokenAPIKey = globals.config.get("Telegram","BOTTokenAPIKey") + BOTChatIDAPIKey = globals.config.get("Telegram","BOTChatIDAPIKey") + RICforLocationAPIKey = globals.config.get("Telegram","RICforLocationAPIKey") + GoogleAPIKey = globals.config.get("Telegram","GoogleAPIKey") return @@ -84,7 +84,7 @@ def run(typ,freq,data): global GoogleAPIKey try: - if configHandler.checkConfig("sendTelegram"): #read and debug the config (let empty if no config used) + #if configHandler.checkConfig("Telegram"): #read and debug the config (let empty if no config used) ########## User Plugin CODE ########## if typ == "POC":