Closed samsamros closed 1 year ago
one_time_keyboard
has been send to server, but I think it is a client's problem, not relate to the bot api
I think you're right @ba0f3 , after trying it with both desktop and mobile. It does hide in desktop but not in ios mobile. I will continue testing. Thank you for your response!
I used the webapp example currently available in the examples but added the oneTimeKeyboard option to the ReplyKeyboardMarkup. However, after trying different approaches, my attempts have been unsuccessful.
According to the telgram bot documentation (https://core.telegram.org/bots/api/#replykeyboardmarkup), this option should hide the button as soon as it is clicked. However it is not working. The Type ReplyKeyboardMarkup includes this option... I'm not sure if I'm making a mistake or did something wrong. I've also tried with every available option in the KeyboardButton, including location and contacts (var google = KeyboardButton(text: "Search the web", requestLocation:some(true)) instead of the code above in the same line.). The code otherwise works flawlessly and prompts a google site or requests a contact or my location; however, upon closing the app, the keyboard button still remains visible and does not hide.
I'm using telebot's latest code and nim 1.7.1 Thank you for your awesome work with this!