fix(DialogKeywords): update file writing method and adjust WhatsApp file sending logic
All checks were successful
GBCI / build (push) Successful in 39s

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2025-04-19 14:39:21 -03:00
parent 4f8067108f
commit b5369ad15c

View file

@ -1588,7 +1588,7 @@ export class DialogKeywords {
if (!isNaN(mobile)) {
await min.whatsAppDirectLine.sendFileToDevice(mobile, url, filename, caption, undefined, 0);
await min.whatsAppDirectLine.sendFileToDevice(mobile, url, filename, caption, undefined, true, true);
} else {
await min.conversationalService['sendOnConversation'](min, user, reply);
}
@ -1623,7 +1623,7 @@ export class DialogKeywords {
});
if (!isNaN(mobile)) {
await min.whatsAppDirectLine.sendFileToDevice(mobile, url, filename, caption, undefined, true);
await min.whatsAppDirectLine.sendFileToDevice(mobile, url, filename, caption, undefined, false);
} else {
await min.conversationalService['sendOnConversation'](min, user, reply);
}