我为电报机器人中的特定用户编写了显示键盘的php代码 但它不起作用
$keyboradsValue = array(
array("offtimeon","button 2"),
array("button 3","button 4"),
);
$replyMarkup = array(
'keyboard' => $keyboradsValue,
'resize_keyboard' => true,
'force_reply' => true,
'selective' => true
);
$encodedMarkup = json_encode($replyMarkup, true);
$url = $website . "/sendMessage?chat_id=-*************&text=@******&disable_web_page_preview=true&reply_markup=".$encodedMarkup;
file_get_contents($url);