Skip to content

Commit b603021

Browse files
Merge pull request #1067 from Alexandre-Prado/fix-chatbots-send-message
fix: esvazia textBuffer dos chatbots no sendMessageWhatsapp quando splitMessages é true
2 parents 7bf0fd1 + 753f4ba commit b603021

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/api/integrations/chatbot/dify/services/dify.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,8 +428,8 @@ export class DifyService {
428428
},
429429
false,
430430
);
431-
textBuffer = '';
432431
}
432+
textBuffer = '';
433433
}
434434

435435
if (mediaType === 'audio') {

src/api/integrations/chatbot/evolutionBot/services/evolutionBot.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ export class EvolutionBotService {
190190
},
191191
false,
192192
);
193-
textBuffer = '';
194193
}
194+
textBuffer = '';
195195
}
196196

197197
if (mediaType === 'audio') {
@@ -274,8 +274,8 @@ export class EvolutionBotService {
274274
},
275275
false,
276276
);
277-
textBuffer = '';
278277
}
278+
textBuffer = '';
279279
}
280280

281281
sendTelemetry('/message/sendText');

src/api/integrations/chatbot/flowise/services/flowise.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ export class FlowiseService {
189189
},
190190
false,
191191
);
192-
textBuffer = '';
193192
}
193+
textBuffer = '';
194194
}
195195

196196
if (mediaType === 'audio') {
@@ -273,8 +273,8 @@ export class FlowiseService {
273273
},
274274
false,
275275
);
276-
textBuffer = '';
277276
}
277+
textBuffer = '';
278278
}
279279

280280
sendTelemetry('/message/sendText');

src/api/integrations/chatbot/openai/services/openai.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,8 @@ export class OpenaiService {
234234
},
235235
false,
236236
);
237-
textBuffer = '';
238237
}
238+
textBuffer = '';
239239
}
240240

241241
if (mediaType === 'audio') {
@@ -318,8 +318,8 @@ export class OpenaiService {
318318
},
319319
false,
320320
);
321-
textBuffer = '';
322321
}
322+
textBuffer = '';
323323
}
324324

325325
sendTelemetry('/message/sendText');

0 commit comments

Comments
 (0)