nohup: ignoring input
ℹ️  Redis not configured, skipping session keep-alive tracking
✅ Server running on port 7608
📡 API Base URL: http://localhost:7608
🌐 Frontend URL: https://advancesender.bigbrainscrm.com

📋 Available Endpoints:
   GET  /                      - Health check
   POST /api/create_instance   - Create new instance
   POST /api/set_webhook       - Configure webhook URL
   POST /api/reboot            - Reboot instance (logout + new QR)
   POST /api/reset_instance    - Reset with new instance ID
   POST /api/reconnect         - Reconnect without QR code
   GET  /instance              - Get instance info
   GET  /session/health        - Check session health status
   GET  /get_qrcode            - Generate QR code
   GET  /get_paircode          - Generate pairing code
   GET  /logout                - Logout instance
   POST /api/send              - Send message (unified)
   POST /send_message          - Send message (queued)
   POST /direct_send_message   - Send message (direct)
   POST /send_template         - Send Business API template
   GET  /get_groups            - Get all groups
   GET  /clear_cache_ai        - Clear AI cache
   GET  /reset                 - Restart server (admin)

🔧 Media Download: DISABLED (Fix #1 applied)
✅ All endpoints registered successfully


🔄 Loading active sessions...
📱 Found 2 active session(s) to load
   Loading session: 69CE05B6CD7A9 (Hardik Shrimankar)...
📨 Registering messages.upsert event handler for instance: 69CE05B6CD7A9
📞 Registering call event handler for instance: 69CE05B6CD7A9
   ✅ Loaded: 69CE05B6CD7A9 (Hardik Shrimankar)
📨 Registering messages.upsert event handler for instance: 69CE09DD58A04
📞 Registering call event handler for instance: 69CE09DD58A04
📊 Session status - Active: 2 | Pending: 0
   Loading session: 69CE09DD58A04 (Big Brains Technolabs LLP)...
   ✅ Loaded: 69CE09DD58A04 (Big Brains Technolabs LLP)

📊 Session Loading Summary:
   ✅ Loaded: 2
   ❌ Failed: 0
   📱 Total: 2

🎉 Server initialization complete!

Decrypted message with closed session.
Decrypted message with closed session.
Decrypted message with closed session.
Decrypted message with closed session.
Decrypted message with closed session.
Decrypted message with closed session.
Decrypted message with closed session.
Decrypted message with closed session.
Decrypted message with closed session.
[Chatbot] Processing message for instance: 69CE05B6CD7A9, chat: 120363179426660468@newsletter
[Chatbot] Getting subscriber for instance: 69CE05B6CD7A9
⏭️  Skipping media message processing (media download disabled): videoMessage
[Chatbot] Subscriber found: 120363179426660468@newsletter, enabled_chatbot: 1
[Chatbot] Fetching chatbot items for instance: 69CE05B6CD7A9
[Chatbot] No chatbot items found for instance: 69CE05B6CD7A9
⏭️  Skipping chatbot/autoresponder for media message (media messages not supported)
⏭️  Skipping chatbot/autoresponder for media message (media messages not supported)
⏭️  Skipping chatbot/autoresponder for non-text message type
[Chatbot] Processing message for instance: 69CE09DD58A04, chat: 120363152788894992@newsletter
[Chatbot] Getting subscriber for instance: 69CE09DD58A04
[Chatbot] Subscriber found: 120363152788894992@newsletter, enabled_chatbot: 1
[Chatbot] Fetching chatbot items for instance: 69CE09DD58A04
[Chatbot] No chatbot items found for instance: 69CE09DD58A04
⏭️  Skipping chatbot/autoresponder for media message (media messages not supported)
[Chatbot] DISABLED for subscriber 176695155916836@lid (instance: 69CE05B6CD7A9) via keyword "null"
[Chatbot] Subscriber ID: 583, enabled_chatbot: 0
[Chatbot] Database updated successfully - enabled_chatbot set to 0
[Chatbot] Processing message for instance: 69CE09DD58A04, chat: 120363255064832056@newsletter
[Chatbot] Getting subscriber for instance: 69CE09DD58A04
[Chatbot] Subscriber found: 120363255064832056@newsletter, enabled_chatbot: 1
[Chatbot] Fetching chatbot items for instance: 69CE09DD58A04
[Chatbot] No chatbot items found for instance: 69CE09DD58A04
🔔 SOCKET.IO EMIT: instance-69CE09DD58A04-appMessage-create {
  remoteJid: '120363255064832056@newsletter',
  body: '🚀 *Nova Versão Lançada!*\n\nEstamos empolgados em a'
}
🔔 SOCKET.IO EMIT: instance-69CE09DD58A04-appMessage-create {
  remoteJid: '120363152788894992@newsletter',
  body: 'Firstpost LIVE | Iran Launches Fresh Strikes on Is'
}
