main.py 文件源码

python
阅读 17 收藏 0 点赞 0 评论 0

项目:walkdir-telegram-bot 作者: deepserket 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号