Skip to content

Commit

Permalink
Merge pull request #1067 from Alexandre-Prado/fix-chatbots-send-message
Browse files Browse the repository at this point in the history
fix: esvazia textBuffer dos chatbots no sendMessageWhatsapp quando splitMessages é true
  • Loading branch information
DavidsonGomes authored Nov 14, 2024
2 parents 7bf0fd1 + 753f4ba commit b603021
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/api/integrations/chatbot/dify/services/dify.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,8 @@ export class DifyService {
},
false,
);
textBuffer = '';
}
textBuffer = '';
}

if (mediaType === 'audio') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ export class EvolutionBotService {
},
false,
);
textBuffer = '';
}
textBuffer = '';
}

if (mediaType === 'audio') {
Expand Down Expand Up @@ -274,8 +274,8 @@ export class EvolutionBotService {
},
false,
);
textBuffer = '';
}
textBuffer = '';
}

sendTelemetry('/message/sendText');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ export class FlowiseService {
},
false,
);
textBuffer = '';
}
textBuffer = '';
}

if (mediaType === 'audio') {
Expand Down Expand Up @@ -273,8 +273,8 @@ export class FlowiseService {
},
false,
);
textBuffer = '';
}
textBuffer = '';
}

sendTelemetry('/message/sendText');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,8 @@ export class OpenaiService {
},
false,
);
textBuffer = '';
}
textBuffer = '';
}

if (mediaType === 'audio') {
Expand Down Expand Up @@ -318,8 +318,8 @@ export class OpenaiService {
},
false,
);
textBuffer = '';
}
textBuffer = '';
}

sendTelemetry('/message/sendText');
Expand Down

0 comments on commit b603021

Please sign in to comment.