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

// Simulate incoming message '1'
$bot->processMessage($user, '1', 'text');

echo "Simulated processMessage('1') for {$phone}\n";
