def bot_cmd(bot, update):
reply_msg = "What do you want to do?"
buttons = [
KeyboardButton(KeyboardEnum.UPDATE_CHECK.clean()),
KeyboardButton(KeyboardEnum.UPDATE.clean()),
KeyboardButton(KeyboardEnum.RESTART.clean()),
KeyboardButton(KeyboardEnum.SHUTDOWN.clean()),
KeyboardButton(KeyboardEnum.SETTINGS.clean()),
KeyboardButton(KeyboardEnum.CANCEL.clean())
]
reply_mrk = ReplyKeyboardMarkup(build_menu(buttons, n_cols=2))
update.message.reply_text(reply_msg, reply_markup=reply_mrk)
return WorkflowEnum.BOT_SUB_CMD
# Execute chosen sub-cmd of 'bot' cmd
telegram_kraken_bot.py 文件源码
python
阅读 23
收藏 0
点赞 0
评论 0
评论列表
文章目录