JSFiddle - React, Tailwind, and code Playground

by zerrax

HTML

<?php
    $chatID = "id chat here";
    $token = "api key here";
    $url = "https://api.telegram.org/bot" . $token . "/sendMessage?chat_id=" . $chatID;
    $url = $url . "&text=" . $text;
    $ch = curl_init();
    $optArray = array(CURLOPT_URL => $url,CURLOPT_RETURNTRANSFER => true);
    curl_setopt_array($ch, $optArray);
    $result = curl_exec($ch);
    curl_close($ch);
    ?>