telegram bot api. How do I disable the standard keyboard (Java)?

I write in Java. Is there a way to disable the standard keyboard in the telegram bot api? So that the user can't enter anything other than the options from ReplyKeyboardMarkup ?

Author: Dilitand, 2021-02-08

1 answers

You can't disable it, it's a system thing. You can collapse it, but it will be available to the user and he will be able to expand it.

According to the documentation, ReplyKeyboardMarkup it has a boolean one_time_keyboard, which if you set true, the bot will ask the client to collapse the system keyboard and options from the bot keyboard will be available.

 0
Author: DmitriyD, 2021-02-09 06:04:54