<?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);
