Como criar um bot no Telegram em PHP

define('BASIC_API_URL', 'https://api.telegram.org/bot<BOT_TOKEN>/');public function make(string $action): array {    $curlInit = curl_init();    curl_setopt($curlInit, CURLOPT_URL, BASIC_API_URL . $action);    $curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);    $output = curl_exec($ch);    curl_close($curlInit);    return json_decode($output, true);}