fix(DialogKeywords): update file writing method and adjust WhatsApp file sending logic
All checks were successful
GBCI / build (push) Successful in 39s
All checks were successful
GBCI / build (push) Successful in 39s
This commit is contained in:
parent
4f8067108f
commit
b5369ad15c
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue