G
G
grecigor252021-06-27 11:38:59
Python
grecigor25, 2021-06-27 11:38:59

Other handlers do not work except what to fix?

https://pastebin.com/RFrPGs25
2 questions
1 - I have 2 handlers.

1 Responsible for commands
2 Responsible for messages

I would like to break that huge piece into handlers into the same handlers with the answer, but when I write another handler that, for example, will respond to the question - How are you? And if I put this handler above the main one, then the main one will stop working. And all in the heap write this to yourself

2 - How can I make it so that when I press the button, it would not be necessary to enter text?

await bot.send_message(message.from_user.id,f'You went to the main menu'
,reply_markup=mainMenu)

What method can I use with reply_markup?

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