I’m writing a Telegram bot that provides button choices to the user. I’d like to ensure the user chooses from one of the buttons, rather than sending a custom text message or sticker or whatever. Is there some way to do this? As far as I can tell from the docs I can’t.
Question posted in Telegram API
A comprehensive official documentation can be found here.
A comprehensive official documentation can be found here.
2
Answers
The answer is no! I am going to handle this by getting the bot to ignore any text input until the user selects one of the button options.
I came here looking for the complete disabling of the keyboard. but so far, I’m making the bot tell the user to choose only from the buttons (better than ignoring random input IMHO).