Answer the question
In order to leave comments, you need to log in
How to send a message with a button after clicking on the previous one?
Hello, I can’t do it so that after clicking on the button (Inline button), the bot sends another (already different) message, also with a button (Inline button).
Here is an example how it should be:
User
/start
Bot
Hello, click on the button
|_BUTTON_|
I click
Bot
Click also on this
|_BUTTON_|
At the moment, my bot can respond to button presses with a simple message like:
User
/start
Bot
Hello, click on the button
|_BUTTON_|
I click
Bot
Thanks for clicking... And that's all...
How to make it so that when it is clicked, it responds with a message also with a button? I'm still a newbie, please help me.
Here is the code to be improved:
Answer the question
In order to leave comments, you need to log in
1) Take out the lines
markup =....
item_hy = ....
markup.add(item_hi)
bot.send_message(call.message.chat.id, "Всё окей")
bot.send_message(call.message.chat.id, "Нажми ещё эту", reply_markup=markup)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question