fix(DialogKeywords): update file writing method and adjust WhatsApp file sending logic
All checks were successful
GBCI / build (push) Successful in 29s
All checks were successful
GBCI / build (push) Successful in 29s
This commit is contained in:
parent
a003f5297c
commit
4f8067108f
2 changed files with 2 additions and 2 deletions
|
@ -1588,7 +1588,7 @@ export class DialogKeywords {
|
||||||
|
|
||||||
|
|
||||||
if (!isNaN(mobile)) {
|
if (!isNaN(mobile)) {
|
||||||
await min.whatsAppDirectLine.sendFileToDevice(mobile, url, filename, caption, undefined, false);
|
await min.whatsAppDirectLine.sendFileToDevice(mobile, url, filename, caption, undefined, 0);
|
||||||
} else {
|
} else {
|
||||||
await min.conversationalService['sendOnConversation'](min, user, reply);
|
await min.conversationalService['sendOnConversation'](min, user, reply);
|
||||||
}
|
}
|
||||||
|
|
|
@ -716,7 +716,7 @@ export class WhatsappDirectLine extends GBService {
|
||||||
return `${attachment.content.title} - ${attachment.content.text}`;
|
return `${attachment.content.title} - ${attachment.content.text}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
public async sendFileToDevice(to, url, filename, caption, chatId, isViewOnce = true) {
|
public async sendFileToDevice(to, url, filename, caption, chatId, isViewOnce = false) {
|
||||||
let options;
|
let options;
|
||||||
switch (this.provider) {
|
switch (this.provider) {
|
||||||
case 'meta':
|
case 'meta':
|
||||||
|
|
Loading…
Add table
Reference in a new issue