Сайт открывается, сертификат Lets стоит.
curl_setopt($curl, CURLOPT_URL, 'https://api.telegram.org/bot'.$bot_token.'/sendMessage'); // адрес api телеграмм
Гуглением было добыт код
Код: Выделить всё
echo "<pre>";
var_dump(curl_getinfo($curl));
echo "</pre>";
Код: Выделить всё
array(37) {
  ["url"]=>string(86) "https://api.telegram.org/bot<id_bots>/sendMessage"
  ["content_type"]=>  NULL
  ["http_code"]=>  int(0)
  ["header_size"]=>  int(0)
  ["request_size"]=>  int(0)
  ["filetime"]=>  int(-1)
  ["ssl_verify_result"]=>  int(1)
  ["redirect_count"]=>  int(0)
  ["total_time"]=>  float(0.092437)
  ["namelookup_time"]=>  float(0.028058)
  ["connect_time"]=>  float(0.091407)
  ["pretransfer_time"]=>  float(0)
  ["size_upload"]=>  float(0)
  ["size_download"]=>  float(0)
  ["speed_download"]=>  float(0)
  ["speed_upload"]=>  float(0)
  ["download_content_length"]=>  float(-1)
  ["upload_content_length"]=>  float(-1)
  ["starttransfer_time"]=>  float(0)
  ["redirect_time"]=>  float(0)
  ["redirect_url"]=>  string(0) ""
  ["primary_ip"]=>  string(15) "149.154.167.220"
  ["certinfo"]=>  array(0) {}
  ["primary_port"]=>  int(443)
  ["local_ip"]=>  string(14) "192.168.50.203"
  ["local_port"]=>  int(58650)
  ["http_version"]=>  int(0)
  ["protocol"]=>  int(2)
  ["ssl_verifyresult"]=>  int(0)
  ["scheme"]=>  string(5) "HTTPS"
  ["appconnect_time_us"]=>  int(0)
  ["connect_time_us"]=>  int(91407)
  ["namelookup_time_us"]=>  int(28058)
  ["pretransfer_time_us"]=>  int(0)
  ["redirect_time_us"]=>  int(0)
  ["starttransfer_time_us"]=>  int(0)
  ["total_time_us"]=>  int(92437)На VPS рег. я получаю же в local_ip:
Код: Выделить всё
 ["local_ip"]=>  string(20) "2a00:f940:2:1:2::6e9"Curl с сервисом http://ip-api.com работает, ответ даёт.
Что я делаю не так?