driver-telegram icon indicating copy to clipboard operation
driver-telegram copied to clipboard

Input field placeholder support

Open chimit opened this issue 1 year ago • 0 comments

Support of the input_field_placeholder keyboard parameter that allows you to set a placeholder into the input field:

$bot->reply('Hi', [
    ...Keyboard::create('keyboard')
        ->addRow(KeyboardButton::create('Button'))
        ->resizeKeyboard()
        ->inputFieldPlaceholder('Hello, world!')
        ->toArray(),
    'parse_mode' => 'HTML',
]);

image

https://core.telegram.org/bots/api#replykeyboardmarkup

chimit avatar Jul 16 '24 05:07 chimit