Update Telegram.py

Import libraries urllib and googlemaps only if RICforLocationAPIKey is defined.
This commit is contained in:
PeterLaemmle 2017-09-30 18:11:20 +02:00 committed by GitHub
parent b2df53430d
commit d4946bf714

View file

@ -11,9 +11,11 @@ Plugin to send FMS-, ZVEI- and POCSAG-messages via Telegram
# Imports
#
import logging # Global logger
import urllib, telegram, googlemaps
import telegram
from telegram.error import (TelegramError, Unauthorized, BadRequest, NetworkError)
from includes import globalVars # Global variables
if globalVars.config.get("Telegram","RICforLocationAPIKey"):
import urllib, googlemaps
# Helper function, uncomment to use
from includes.helper import wildcardHandler