up
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
require_once __DIR__ . '/../config/config.php';
|
||||
$id = $argv[1] ?? null;
|
||||
if (!$id) { echo "Usage: php show_conversation.php <id>\n"; exit(1); }
|
||||
$db = Database::getInstance();
|
||||
$r = $db->fetch('SELECT id, message_id, message_type, content, media_url FROM conversations WHERE id = ?', [$id]);
|
||||
header('Content-Type: application/json');
|
||||
echo json_encode($r, JSON_PRETTY_PRINT);
|
||||
Reference in New Issue
Block a user