In telegram bot to make the transfer menu in new line?

Hello, my question is how to do so in telegrams bot appeared column menu new one. Those not all in one line and 2 and ATO 3 lines. The code for the bot is.
function sendMessage($id,$text)
{
 global $api;
 $keyboard = [['/help','/add','/list','/mail']] ;
 $resp = ["keyboard" => $keyboard,"resize_keyboard" => true,"one_time_keyboard" => false];
 $reply = json_encode($resp);
 $query = $api. '/sendMessage?chat_id='. $id .'&reply_markup='.$reply.'&text='.urlencode($text);
file_get_contents($query);
}
April 7th 20 at 15:23
1 answer
April 7th 20 at 15:25
Solution
$keyboard = [['/help','/add','/list','/mail'], ['/help','/add','/list','/mail']] ;

or
$keyboard = [[['/help','/add','/list','/mail']['/help','/add','/list','/mail']]];
Thank you very much) - gisselle.Heathcote commented on April 7th 20 at 15:28

Find more questions by tags PHP