A
A
Artem Rocky2018-03-22 16:56:45
Bots
Artem Rocky, 2018-03-22 16:56:45

How to create back button in python telegram bot?

What is the code for the back button? I am writing in python, and I don’t understand a little how to describe the algorithm for returning to the previous menu. Tell me please!5ab3b5d077549650768979.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
German Nikolishin, 2018-03-26
@Aspvxrocky

You describe the menu as a global variable. In the function you check if the text of the message is "Cancel"? If yes, then write about canceling the action and attach the menu to the message

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question