This commit is contained in:
Lizandro Guarnizo
2026-01-24 02:20:31 -05:00
parent a481a20e9a
commit 3033f022d7
3 changed files with 34 additions and 1 deletions
+7
View File
@@ -99,4 +99,11 @@ $bot->processMessage($user, 'ATRAS');
print_r($stateSvc->getState($phone));
print_r($db->fetch("SELECT current_menu_id FROM users WHERE phone_number = :phone", ['phone' => $phone]));
// 5) Ahora, estando de vuelta en informacion_examenes, seleccionar '1' nuevamente
echo "\n5) En informacion_examenes, enviar '1' de nuevo\n";
$bot->processMessage($user, '1');
print_r($stateSvc->getState($phone));
echo "menu_history: " . json_encode($stateSvc->getStateData($phone, 'menu_history')) . "\n";
print_r($db->fetch("SELECT current_menu_id FROM users WHERE phone_number = :phone", ['phone' => $phone]));
echo "\nTest script finished.\n";