Call a API request with PHP

Hello, I want to call a POST request like this below from scriptcase. If I put my request directly to the browser, everything is working as expected. I receive a message in telegram. But if I use curl, I dont receive anything. Can someone help me? What is wrong in my code?

https://api.telegram.org/bot/sendMessage?chat_id=123456789&text=Test%20from%20post,%20task%20created

$url = "https://api.telegram.org/bot<token>/sendMessage?chat_id=123456789&text=Test%20from%20post,%20task%20created";	
	
// create a new cURL resource
$ch = curl_init();

// set URL and other appropriate options
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 0);

// grab URL and pass it to the browser
curl_exec($ch);

// close cURL resource, and free up system resources
curl_close($ch);