fix: remove abort process when status is paused, allowing the chatbot return after the time expires and after being paused due to human interaction (stopBotFromMe)

This commit is contained in:
Josias Maceda 2025-09-09 13:54:53 -03:00
parent c2085b59ea
commit bc9724a929

View File

@ -878,13 +878,7 @@ export abstract class BaseChatbotController<BotType = any, BotData extends BaseC
// Skip if session exists but not awaiting user input // Skip if session exists but not awaiting user input
if (session && session.status === 'closed') { if (session && session.status === 'closed') {
return; return;
} }
// Skip if session exists and status is paused
if (session && session.status === 'paused') {
this.logger.warn(`Session for ${remoteJid} is paused, skipping message processing`);
return;
}
// Merged settings // Merged settings
const mergedSettings = { const mergedSettings = {