This is the expected behavior when the is_persistent field of the keyboard is True.
Steps to reproduce
Open any bot with ReplyKeyboardMarkup buttons (e.g @SpamBot)
Open the ReplyKeyboardMarkup buttons with the dedicated option
Note: If the one_time_keyboard value of ReplyKeyboardMarkup is False, the keyboard will be automatically opened when you open the chat with the bot.
Current Result
By tapping on bottom return button the keyboard doesn't automatically close, independently of how you opened it.
If the keyboard is manually opened, the button to hide the ReplyKeyboardMarkup buttons is shown but doesn't work.
Expected Result
By tapping on bottom return button the keyboard automatically close.
If the keyboard is manually opened, the button to hide the ReplyKeyboardMarkup buttons is not shown at all.
By tapping on the input field the keyboard automatically switches to hardware's keyboard, therefore there is no need for a switch button from ReplyKeyboardMarkup to Hardware keyboard.
Device info
Telegram Android 8.8.3 (27052), ZTE ZTE 2050RU, 9 P (28)
Log in here to report bugs or suggest features. Please enter your phone number in the international format and we will send a confirmation message to your account via Telegram.