ゴジラ

Using the Telegram API with PHP

function telegram($message) {
    $botToken = "";
    $chat_id = "";
    $bot_url    = "https://api.telegram.org/bot$botToken/";
    $url = $bot_url."sendMessage?chat_id=".$chat_id."&text=".urlencode($message);
    file_get_contents($url);
}

Last modified: December 06 2019 14:21:55