This commit is contained in:
Lizandro Guarnizo
2026-01-25 22:49:13 -05:00
parent e2c8fc994a
commit 95125a6708
10 changed files with 420 additions and 41 deletions
+14
View File
@@ -0,0 +1,14 @@
<?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";