Skip to content

Instantly share code, notes, and snippets.

@dev4Fun
Last active May 17, 2018 00:48
Show Gist options
  • Save dev4Fun/4890d7a4929327f3926f6ee40c53c311 to your computer and use it in GitHub Desktop.
Save dev4Fun/4890d7a4929327f3926f6ee40c53c311 to your computer and use it in GitHub Desktop.
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