من اینطوری نوشتم<?php
$url = "https://api.telegram.org/bot<tokenbot>/";
$getfile = "https://api.telegram.org/file/bot<tokenbot>/";
$data = json_decode(file_get_contents("php://input"));
if($data->message->text =="/start"){
$keyboard = array(
'keyboard' => array(
array('آخرین موزیک ها','test'),
),
'resize_keyboard' => true
);
file_get_contents($url.'sendMessage?chat_id='.$dat a->message->chat->id.'&text=لطفا یکی از گزینه های زیر را انتخاب نمایید&reply_markup='.json_encode($keyboard) );
}
?>