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
+20
View File
@@ -0,0 +1,20 @@
<?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";