diff --git a/services/BotService.php b/services/BotService.php index 6845cd2..741ebb8 100644 --- a/services/BotService.php +++ b/services/BotService.php @@ -33,16 +33,9 @@ class BotService { // ignore logging errors } - // Verificar si es un nuevo usuario (iniciar con menĂº principal) + // Verificar si es un nuevo usuario (enviar mensaje de bienvenida) if ($this->isNewUser($user['id'])) { - // En lugar de welcome textual, mostramos el menĂº principal y marcamos welcome_sent - try { - $this->showMainMenu($phoneNumber); - $this->db->update('users', ['welcome_sent_at' => date('Y-m-d H:i:s')], 'phone_number = :phone', ['phone' => $phoneNumber]); - error_log("[BotService] processMessage - initial menu sent to new user {$user['id']}"); - } catch (Exception $e) { - error_log('[BotService] Failed to send initial menu: ' . $e->getMessage()); - } + $this->sendWelcomeMessage($phoneNumber); return; }