def trade_price(bot, update, chat_data):
chat_data["price"] = update.message.text
reply_msg = "How to enter the volume?"
buttons = [
KeyboardButton(config["trade_to_currency"].upper()),
KeyboardButton(KeyboardEnum.VOLUME.clean())
]
cancel_btn = [
KeyboardButton(KeyboardEnum.ALL.clean()),
KeyboardButton(KeyboardEnum.CANCEL.clean())
]
reply_mrk = ReplyKeyboardMarkup(build_menu(buttons, n_cols=2, footer_buttons=cancel_btn))
update.message.reply_text(reply_msg, reply_markup=reply_mrk)
return WorkflowEnum.TRADE_VOL_TYPE
# Save volume type decision and enter volume
telegram_kraken_bot.py 文件源码
python
阅读 23
收藏 0
点赞 0
评论 0
评论列表
文章目录