Add an option to disable auto hiding keyboard
kubk opened this issue · comments
Egor Gorbachev commented
Now Telegram driver automatically hides keyboard for interactive messages:
driver-telegram/src/TelegramDriver.php
Lines 164 to 173 in cba2774
This method is called here:
https://github.com/botman/botman/blob/0afbda1ad742dd369b0b1368104b6d3462118262/src/BotMan.php#L408-L409
For my case it is required to prevent hiding keyboard, but I did not find a way to do this without extending TelegramDriver and overriding messagesHandled
. My suggestion is to add an option to TelegramDriver config, for example 'hideKeyboard' => true
(default) and hide a keyboard only if this parameter is set to true. Can make a PR.
Egor Gorbachev commented