fix(WhatsappDirectLine): update sendFileToDevice to default isViewOnce to true and clean up header example
Some checks failed
GBCI / build (push) Has been cancelled
Some checks failed
GBCI / build (push) Has been cancelled
This commit is contained in:
parent
cbdf3664bb
commit
9d95e4f8c1
1 changed files with 1 additions and 0 deletions
|
@ -654,6 +654,7 @@ export class GBConversationalService {
|
|||
let loader = new DocxLoader(localName);
|
||||
let doc = await loader.load();
|
||||
text = doc[0].pageContent;
|
||||
template = template + '_docx';
|
||||
}
|
||||
let mediaFile = !isMedia ? /(.*)\n/gim.exec(text)[0].trim() : text;
|
||||
let mediaType = mediaFile.toLowerCase().endsWith('.mp4') || text.toLowerCase().endsWith('.mov') ? 'video' : 'image';
|
||||
|
|
Loading…
Add table
Reference in a new issue