<?php
require_once 'config/config.php';

$phone = $argv[1] ?? '573022548060';
$db = Database::getInstance();
$user = $db->fetch('SELECT * FROM users WHERE phone_number = :phone', ['phone' => $phone]);
if (!$user) { echo "No user found\n"; exit(1); }

$bot = new BotService();

echo "1) Simular selección del menú que pide documentos (opción 1)\n";
$bot->processMessage($user, '1', 'text');

echo "2) Simular envío de imagen (documento)\n";
$bot->processMessage($user, 'media123', 'image');

echo "3) Simular confirmación 'ENVIADA'\n";
$bot->processMessage($user, 'ENVIADA', 'text');

echo "Done\n";
