From b5369ad15ced9138b639cbc982d28dfbc3b2c6da Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Sat, 19 Apr 2025 14:39:21 -0300 Subject: [PATCH] fix(DialogKeywords): update file writing method and adjust WhatsApp file sending logic --- packages/basic.gblib/services/DialogKeywords.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/basic.gblib/services/DialogKeywords.ts b/packages/basic.gblib/services/DialogKeywords.ts index cf8030c5..3a85b293 100644 --- a/packages/basic.gblib/services/DialogKeywords.ts +++ b/packages/basic.gblib/services/DialogKeywords.ts @@ -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); }