snoba
snoba

Reputation: 53

how to add start button in telegram bot with python-telegran-bot sdk?

I want to write a simple bot for telegram with python-telegram-bot SDK. I want to show a "START" keyboard button instead of typing "/start" command to work with my bot. How to do this with python-telegram-bot?

Upvotes: 5

Views: 10270

Answers (1)

Naser.Sadeghi
Naser.Sadeghi

Reputation: 1302

As I know when you start using a bot for the first time telegram shows that start button itself but after the first message is sent you won't see that keyboard button anymore all you need to do is clearing the bot's history to see that again.

On the other hand if you want to have a keyboard button that can be shown anytime you want, all you should do is implementing a custom keyboard. You can find useful information about keyboards here.

Upvotes: 3

Related Questions