Back to All

PHP Arrays

I was wondering if I could implement this PHP code on the API side:

$menu[] = array(
array(
"text" => "bottone1",
"callback_data" => "/test1"),
array(
"text" => "bottone2",
"callback_data" => "/test2"),
);
$menu[] = array(
array(
"text" => "bottone3",
"callback_data" => "/test3"),
);

Of course this is only a part of the complete code, I just published its core.
This code allows an user to implement an inline keyboard in its bot, and this keyboard is pretty similar to the $suggested_replies (quick replies) which is explained in the documentation.
I would like to add this code to the API side.
Unlucky on Telegram quick replies are introduced by a "Choose:" first, which I don't want, but I still need the inline keyboard, so I thought that maybe I could use my code to add it.
Is this possible? Please answer as fast as you can, thank you.