diff --git a/src/Commands.py b/src/Commands.py index 1a728df..8a8c9d7 100644 --- a/src/Commands.py +++ b/src/Commands.py @@ -1,8 +1,8 @@ from telegram.ext import CallbackContext from telegram import Update -from src.LimitedList import LimitedList -from src.Utils import parse_command, config, Section +from LimitedList import LimitedList +from Utils import parse_command, config, Section def get_watchlist(context: CallbackContext) -> LimitedList: diff --git a/src/Mercatus.py b/src/Mercatus.py index 41e92d6..5bce150 100644 --- a/src/Mercatus.py +++ b/src/Mercatus.py @@ -2,10 +2,10 @@ from asyncio import sleep from datetime import datetime, timedelta from telegram.ext import Updater, CommandHandler -from src.Background import interval -from src.Market import Market -from src.Utils import persistence, config, Section -from src.Commands import watchlist_add, watchlist_delete, watchlist_all, watchlist_clear, set_api_key, get_api_key +from Background import interval +from Market import Market +from Utils import persistence, config, Section +from Commands import watchlist_add, watchlist_delete, watchlist_all, watchlist_clear, set_api_key, get_api_key updater: Updater = Updater(config['token'], use_context=True, persistence=persistence) @@ -18,6 +18,7 @@ async def send_updates(): if Section.API_Key.value not in data: continue + print('Sending updates to {}'.format(key)) market = Market(data[Section.API_Key.value]) updater.bot.send_message(key, text='Getting updates 🌎') first = True