2016-06-29 15 views

Antwort

1

Sie müssen parse_mode zu markdown

$post = array("chat_id" => $id, "text"=> $text, "parse_mode" => "markdown"); 
$ch = curl_init(); 
curl_setopt($ch, CURLOPT_URL,"https://api.telegram.org/bot" . $GLOBALS["token"] . "/sendMessage"); 
curl_setopt($ch, CURLOPT_POST, 1); 
curl_setopt($ch, CURLOPT_POSTFIELDS, $post); 
curl_exec ($ch);  
curl_close ($ch);