D
D
DeenXS2020-08-17 13:09:49
Python
DeenXS, 2020-08-17 13:09:49

Working of multiple buttons in TELEGRAM Python bot?

I wrote a simple FAQ bot for telegrams. I would like to know how to make it so that when writing /start, the button below "I need help" is highlighted and the bot also writes: Do you need help? And after pressing this button, steel buttons immediately appeared already with questions. I'm explaining like a fool, but sorry :)

ie:
Me: /start
B: Do you need help?
Keyboard: (button) I need help.
Me: I need help (click)
Keyboard: (button) Top up balance (button) Transfer funds (button) Withdraw funds.
Me: I press any button.
Keyboard: (button)Back
Me: I press back
Keyboard: again provides a choice of buttons

How to implement this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ilya Vasiliev, 2020-08-17
@Lovkiy34

registering a bot, getting a token.
In general, there are many simple examples.

A
a, 2020-08-17
@MZOK

How to implement this?

Hands
There are two libraries - pyTelegramBotAPI , aiogram .
I recommend the second one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question