Is there any option to send message to telegram while there is no access to DNS server (no option to resolve api.telegram.org url) ?
Tried with 149.154.167.220 instead of api.telegram.org - no luck
Is there any option to send message to telegram while there is no access to DNS server (no option to resolve api.telegram.org url) ?
Tried with 149.154.167.220 instead of api.telegram.org - no luck
Yes, it is possible. If IP didn't blocked then you can send request to IP instead of domain.
For example in PHP with curl:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL," IP here ");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
$headers = [
'Content-Type: application/html; charset=utf-8',
'Method: GET',
'Host: domain.com',
'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36',
];
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$server_output = curl_exec ($ch);
curl_close ($ch);
print $server_output ;