Answer the question
In order to leave comments, you need to log in
How to change button text in TelegramBotApi?
You need to make a simple function in the python pyTelegramBotApi library so that when you click on the KeyboardButton from KeyboardMarkup, it changes the text or the KeyboardButton button itself.
For example:
On the Buttons screen:
Notification1: Off
Notification2: Off
When you click on Notification1: Off , everything should change to:
Notification1: On
Notification2: Off
I looked at the telegrambotapi documentation for a very long time, but didn’t understand something at all. Help me please! I would just like to know which function to use and the example is preferably small.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question