'https://api.telegram.org/bot' . TELEGRAM_TOKEN . '/sendMessage', CURLOPT_POST => TRUE, CURLOPT_RETURNTRANSFER => TRUE, CURLOPT_TIMEOUT => 10, CURLOPT_POSTFIELDS => array( 'chat_id' => TELEGRAM_CHATID, 'text' => $text, ), ) ); curl_exec($ch); } message_to_telegram('Заявка с сайта ' . $_SERVER['SERVER_NAME'] . ': ' . $_POST['fio'] . ' - ' . $_POST['tel']); } ?>