I
I
idperson2020-07-26 20:07:15
Bots
idperson, 2020-07-26 20:07:15

How to implement button reuse in telegrambot?

I'm making a keyboard using ReplyKeyboardMarkup.
With two buttons, such as B1 and B2.
I want that when the buttons are pressed, some action is performed, while the keyboard does not disappear and it would be possible to press the buttons again in any sequence.
If you do it through bot.register_next_step_handler(msg, process_step)
AND do processing in process_step, then a message (button text) appears in the feed. Also, if you spell B1, then the event will also be processed.
Can this be avoided?
Those. so that nothing happens when typing, only on click.

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