merging with develop

This commit is contained in:
pedro-php
2025-03-28 10:36:34 -03:00
50 changed files with 2129 additions and 934 deletions

View File

@@ -1106,7 +1106,7 @@ export class ChatwootService {
sendTelemetry('/message/sendWhatsAppAudio');
const messageSent = await waInstance?.audioWhatsapp(data, true);
const messageSent = await waInstance?.audioWhatsapp(data, null, true);
return messageSent;
}
@@ -1898,7 +1898,7 @@ export class ChatwootService {
.replaceAll(/~((?!\s)([^\n~]+?)(?<!\s))~/g, '~~$1~~')
: originalMessage;
if (bodyMessage && bodyMessage.includes('Por favor, classifique esta conversa, http')) {
if (bodyMessage && bodyMessage.includes('/survey/responses/') && bodyMessage.includes('http')) {
return;
}

View File

@@ -1018,10 +1018,6 @@ export class TypebotController extends ChatbotController implements ChatbotContr
return;
}
if (session && !session.awaitUser) {
return;
}
if (debounceTime && debounceTime > 0) {
this.processDebounce(this.userMessageDebounce, content, remoteJid, debounceTime, async (debouncedContent) => {
await this.typebotService.processTypebot(

View File

@@ -741,6 +741,10 @@ export class TypebotService {
}
}
if (session && !session.awaitUser) {
return;
}
if (session && session.status !== 'opened') {
return;
}