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

$phone = $argv[1] ?? '573194724531';
$message = $argv[2] ?? '1';
$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
$bot->processMessage($user, $message, 'text');

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