Hi,
Now i’m trying to make some requests to telegram bot api using PHP curl
.
Code below (here i am just trying to get telegram api docs page):
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://core.telegram.org/");
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
echo $output = curl_exec($ch);
if (curl_errno($ch)) {
echo 'err:' . curl_error($ch);
}
curl_close($ch);
But there is such error: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error
When i execute that script on another hosting always is ok.
Example from Teh Playground, where html page successfully reterned:
Any suggestions?