I'm trying to use the Telegram API to make an online advertising app with PHP, but the problem I have is that I can't even understand making request to telegram website. This is a short code I wrote based on Telegram's API and protocol:
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Length" content="348">
<meta http-equiv="Connection" content="keep-alive">
<meta http-equiv="Host" content="149.154.167.40:80">
</head>
<body>
<?php
$url = '149.154.167.40';
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
$result = curl_exec($curl);
echo $result;
?>
</body>
</html>
Does anyone have any idea how to make it work?