true, CURLOPT_POSTFIELDS => [ 'chat_id' => CHAT_ID, 'text' => $text ], CURLOPT_RETURNTRANSFER => true, CURLOPT_CONNECTTIMEOUT => 10, CURLOPT_TIMEOUT => 20, CURLOPT_SSL_VERIFYPEER => true, CURLOPT_SSL_VERIFYHOST => 2 ]); $response = curl_exec($ch); $http = curl_getinfo($ch, CURLINFO_HTTP_CODE); $error = curl_error($ch); curl_close($ch); $json = is_string($response) ? json_decode($response, true) : null; if ($http === 200 && ($json['ok'] ?? false) === true) { $status = 'SUCCESS: Telegram a accepté le message.'; } else { $status = 'ÉCHEC : HTTP ' . $http . '. Vérifiez la configuration Telegram.'; error_log('Telegram test: HTTP ' . $http . ' - ' . $error . ' - ' . substr((string)$response, 0, 1000)); } } } ?> Nova Contact | Nous contacter

NOVA CONTACT

Notre équipe est à votre écoute.

Contactez-nous

Envoyez-nous votre demande.