I have an issue, I'm implementing the telegram bot on my project, i want to know that how to pass dynamic keyboard's button value in telegram bot instead of static value. I have an buttons array.
$buttons = array('button 1', 'button 2', 'button 3', .....);
$keyboard = Keyboard::make()
->inline()
->row(
Keyboard::inlineButton(['text' => 'Button 1', 'callback_data' => 'callback_data1']),
Keyboard::inlineButton(['text' => 'Button 2', 'callback_data' => 'callback_data2'])
);
How to make dynamic below line.
Keyboard::inlineButton(['text' => 'Button 1', 'callback_data' => 'callback_data1']);
which are passing in row() method.