fix(all): CHART and IMAGE from GET HTTP calls.
This commit is contained in:
parent
1de4683541
commit
a3e99bb553
1 changed files with 14 additions and 8 deletions
|
@ -839,14 +839,20 @@ export class DialogKeywords {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
GBLog.info(`BASIC: Sending the file ${filename} to mobile ${mobile}.`);
|
GBLog.info(`BASIC: Sending the file ${filename} to mobile ${mobile}.`);
|
||||||
const url = urlJoin(
|
let url;
|
||||||
GBServer.globals.publicAddress,
|
if (!filename.startsWith("https://")) {
|
||||||
'kb',
|
url = urlJoin(
|
||||||
`${this.min.botId}.gbai`,
|
GBServer.globals.publicAddress,
|
||||||
`${this.min.botId}.gbkb`,
|
'kb',
|
||||||
'assets',
|
`${this.min.botId}.gbai`,
|
||||||
filename
|
`${this.min.botId}.gbkb`,
|
||||||
);
|
'assets',
|
||||||
|
filename
|
||||||
|
);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
url = filename;
|
||||||
|
}
|
||||||
|
|
||||||
await this.min.conversationalService.sendFile(this.min, step, mobile, url, caption);
|
await this.min.conversationalService.sendFile(this.min, step, mobile, url, caption);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue