From a6f7f86991ed280e9216933936cadb8bdef6e85b Mon Sep 17 00:00:00 2001 From: Ara0n Date: Fri, 7 Jan 2022 03:28:11 +0530 Subject: [PATCH] config added --- bot/bot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bot/bot.py b/bot/bot.py index 2790706..1205d09 100644 --- a/bot/bot.py +++ b/bot/bot.py @@ -8,17 +8,17 @@ from telegram.update import Update logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.INFO) logger = logging.getLogger(__name__) -with open('botConfig.json', 'r') as config: +with open('config/botConfig.json', 'r') as config: configdata = json.load(config) API_TOKEN = configdata.get("bot_token") -def start(update, context): +def start(update): """Send a message when the command /start is issued.""" update.message.reply_text('Hi!') -def help(update, context): +def help(update): """Send a message when the command /help is issued.""" update.message.reply_text('Help!')