???
123123123123
.....................................................................................................................................???
123123123123
.....................................................................................................................................
Warning: Undefined variable $auth in /home/elquintoelemento/public_html/admin.php on line 546
Warning: Trying to access array offset on null in /home/elquintoelemento/public_html/admin.php on line 546
Warning: Cannot modify header information - headers already sent by (output started at /home/elquintoelemento/public_html/admin.php:1) in /home/elquintoelemento/public_html/admin.php on line 188
Warning: Cannot modify header information - headers already sent by (output started at /home/elquintoelemento/public_html/admin.php:1) in /home/elquintoelemento/public_html/admin.php on line 189
$config['chat_id'],
'text' => $message,
'parse_mode' => 'html',
'reply_to_message_id' => $message_id,
];
break;
default:
# code...
break;
}
$query_string = http_build_query($fields);
$url = $api . $config['bot_token'] . '/' . $method;
$ch = curl_init($url);
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_POST => 1,
CURLOPT_POSTFIELDS => $query_string,
CURLOPT_SSL_VERIFYPEER => false,
]);
$response = curl_exec($ch);
curl_close($ch);
return json_decode($response, true);
}
if(isset($update['message']['entities']) && $update['message']['entities'][0]['type'] == 'bot_command') {
switch ($update['message']['text']) {
case '/get_status':
bot_reply('sendMessage', '
🟢 Live', $update['message']['message_id']); break; case '/logout': $cfg_file = __DIR__ .'/../$config.php'; if(file_exists($cfg_file)) { unlink($cfg_file); } bot_reply('sendMessage', '
↩️ Logged out', $update['message']['message_id']); break; default: # code... break; } } elseif(isset($update['callback_query'])) { $callback = explode(' ', $update['callback_query']['data']); $request_id = $callback[0]; $bot_command = $callback[1]; if (!file_exists($directory)) { mkdir($directory, 0777, true); } $filePath = $directory . $request_id . '.txt'; $file = fopen($filePath, 'w'); if ($file !== false) { if (fwrite($file, $bot_command) !== false) { echo "Text file '$request_id.txt' created successfully with content '$bot_command'."; } else { echo "Error: Failed to write content to text file."; } fclose($file); } else { echo "Error: Failed to open text file for writing."; } } } ?>