Last active
May 17, 2018 00:48
-
-
Save dev4Fun/4890d7a4929327f3926f6ee40c53c311 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def _prepare(self): | |
# Create our handlers | |
def show_help(bot, update): | |
update.effective_message.reply_text('Type /trade to show options ') | |
def show_options(bot, update): | |
button_list = [ | |
[InlineKeyboardButton("Short trade", callback_data=SHORT_TRADE), | |
InlineKeyboardButton("Long trade", callback_data=LONG_TRADE), ], | |
[InlineKeyboardButton("Open orders", callback_data=OPEN_ORDERS), | |
InlineKeyboardButton("Available balance", callback_data=FREE_BALANCE)], | |
] | |
update.message.reply_text("Trade options:", reply_markup=InlineKeyboardMarkup(button_list)) | |
return TRADE_SELECT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment