mirror of
https://github.com/Araon/Meido.git
synced 2025-02-20 11:13:20 +08:00
config added
This commit is contained in:
parent
5be47c0100
commit
a6f7f86991
@ -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!')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user