file_get_contents not working for api.telegram.org

Hi,
When I trying to use telegram api with file get contents ( I tried curl but no difference), I can't get answer but if I use it on google I get response. What is the reason? I checked it on other hostings it is not working only on Pro free host

<?php

$get = @file_get_contents("http://api.telegram.org/bot451331354:AAEUauIvxkeM3v7oZxtE87EQ1nfqLdmQ_dY/sendMessage?chat_id=211490240&text=Hello");
echo $get;
echo "asd";

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion