I just wanna send a simple request to telegram bot APIs my code is:
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.telegram.org/bot332537240:MY_TOKEN/getUpdates",
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
returns:
cURL Error #:SSL certificate problem: self signed certificate
I don't want use any ssl. I wont set any webhook for telegram. this is a simple request and I failed to handle this. please help me