M
M
Max_Engineer2020-10-30 22:04:13
Python
Max_Engineer, 2020-10-30 22:04:13

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

1 answer(s)
R
Roman, 2020-10-31
@Max_Engineer

here it is written as
https://core.telegram.org/bots/api#editmessagerepl...
and how to use it already depends heavily on the programming language and library used to access the telegram api

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question