I am trying to send notification to my channel but without reply_markup i could send but with markup, I couldnt. Hakre your answer didnt work. Using urlencode i couldn`t send anything also.
$chefbotToken = "XXXXXXXXXX:AAHnUV8fk2gIp4_wudVcuyaxmuxsCPPMPwc";
$canallink= "@zehnuz";
$replyMarkup = array(
'keyboard' => array(
array("A", "B")
)
);
$encodedMarkup = json_encode($replyMarkup);
$yangilik = $title.$shart;
$chef_bot_url = "https://api.telegram.org/bot".$chefbotToken;
$url = $chef_bot_url."/sendMessage?chat_id=".$canallink."&text=".urlencode($yangilik)."&reply_markup=".urlencode($encodedMarkup);
file_get_contents($url);