M
M
Max2019-05-03 19:17:04
Python
Max, 2019-05-03 19:17:04

Reply keyboard markup how to implement in Python?

Hello everyone, and I want to get right to the heart of the matter.
Now I am making my own bot for TG and it became necessary to make a Reply keyboard, not Inline.
I read the documentation of several libraries and could not find a solution.
Googled, but also did not give broad results.
I saw that this issue can be solved in JS, but I don’t have the necessary knowledge for implementation.
Please help me with the question, or at least answer whether it is possible to do this with python at all.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Lomunov, 2019-05-03
@brick__red

telebot library code
example of my bot:
@bot.message_handler(commands=['start']) #/start - Main menu
def handle_start(message):
user_markup = telebot.types.ReplyKeyboardMarkup(True, False)
user_markup.row('Trainings ', 'Exercise technique')
user_markup.row('Tips', '/end')
bot.send_message(message.from_user.id, 'Welcome..', reply_markup=user_markup)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question