def start(bot, update):
global bot_
bot_ = bot
logger.info("from {}: /start".format(update.message.chat_id))
if update.message.chat_id not in ADMINS:
update.message.reply_text("You aren't an admin!")
for id_ in ADMINS: # Warning to the admins
bot.send_message(chat_id=id_,
text="{} attempted to access".format(update.message.chat_id))
return
term.current_dir = term.start_dir
reply_markup = InlineKeyboardMarkup(term.create_keyboard())
update.message.reply_text(term.current_dir, reply_markup=reply_markup)
评论列表
文章目录