A
A
adamHess2018-05-03 15:36:42
Python
adamHess, 2018-05-03 15:36:42

How to make a multilevel button in a telegram bot in Python?

def start(m):
keyboard = types.ReplyKeyboardMarkup(resize_keyboard=True)
keyboard.add(*[types.KeyboardButton(name) for name in ['Stocks', 'News', 'Order']])
keyboard.add( *[types.KeyboardButton(name) for name in ['Location']])
how to make it so that when you click on "Promotions", you get to the menu of several more buttons?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question