PHP CURL get request problem


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, "");
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);


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?

Access to the Telegram API is blocked on our hosting due to abuse. Too many people were using it to write spam bots, so we had no choice but to block it entirely.

Please consider upgrading to premium hosting where no such restrictions are in place.


Want to get the html code of the page-
Then You can use ‘’‘file_get_contents’’’

$html = file_get_contents('');
echo $html;

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.