Deploy: 2026-07-15 04:57:29

This commit is contained in:
Hamza-Ayed
2026-07-15 04:57:29 +03:00
parent 134ed08f45
commit 3de7764cdd
4 changed files with 522 additions and 40 deletions
+6 -1
View File
@@ -20,7 +20,7 @@ for (const p of envPaths) {
const express = require('express');
const cors = require('cors');
const { startSession, disconnectSession, sendMessage, getActiveSessions, checkContact, exportChatHistory } = require('./baileys-client');
const { startSession, disconnectSession, sendMessage, getActiveSessions, checkContact, exportChatHistory, throttleManager } = require('./baileys-client');
const app = express();
app.use(cors());
@@ -82,6 +82,11 @@ app.get('/api/sessions/active', (req, res) => {
res.json({ status: 'success', active_sessions: getActiveSessions() });
});
// Get throttle queue status for all sessions (Anti-Ban monitoring)
app.get('/api/queue/status', (req, res) => {
res.json({ status: 'success', data: throttleManager.getAllStatus() });
});
// Check if contact is on WhatsApp
app.post('/api/contacts/check', async (req, res) => {
const { session_key, phone } = req.body;