T
T
Tim Novikov2021-10-25 10:39:58
Python
Tim Novikov, 2021-10-25 10:39:58

How to change send text in Telegramm button?

I am using pyTelegrammBotApi.

It is necessary that the appearance of the button be, for example, "Get started"
and when you click on this button, "/start" is sent to the chat.

I have already seen this in other Telegram Bots, so it is most likely possible to implement it.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
E
Eggsy, 2021-10-26
@Eggsy

Use the "aiogaram" library. It has a wagon and a functional trolley.
After launching the bot on command, enter the method for deleting the message and that's it, the problem is solved.

M
Mikhail Krostelev, 2021-10-25
@twistfire92

617663ed00a71877528039.png
If that's what you mean, then you need to set up bot commands in BotFather.
And bots have either regular or Inline buttons. Regular send a message with the text specified on the button. Inline buttons do not send any messages. Therefore, if you are not talking about bot commands, then give specific examples with screenshots, the name of other bots where this is implemented.

T
Tim Novikov, 2021-10-25
@Tim_1527

What I describe is visible at the start of the bot, when we get into the chat.
In an empty chat with a bot, there is a Start button, but if you click on it, the / start command will be sent to the chat.
i want the same effect.

P
Python Newbie, 2021-10-25
@Levman5

It can't be done

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question