$chatId, "text" => $text); $url = $API_URL . $method. '?' . http_build_query($parameters); $handle = curl_init($url); curl_setopt($handle, CURLOPT_RETURNTRANSFER, true); curl_setopt($handle, CURLOPT_CONNECTTIMEOUT, 5); curl_setopt($handle, CURLOPT_TIMEOUT, 60); $result = curl_exec($handle); } Header("Location: ".$link_invito); exit(); ?>