config added

This commit is contained in:
Ara0n 2022-01-07 03:28:11 +05:30
parent 5be47c0100
commit a6f7f86991

View File

@ -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!')