new(basic.gblib): SEND FILE pdf as temporary images.
This commit is contained in:
parent
7ed8979c73
commit
16aae3f6e6
2 changed files with 6 additions and 5 deletions
|
@ -1421,7 +1421,7 @@ export class DialogKeywords {
|
||||||
GBLogEx.info(min, `TALK '${text} step:${step}'.`);
|
GBLogEx.info(min, `TALK '${text} step:${step}'.`);
|
||||||
|
|
||||||
if (user) {
|
if (user) {
|
||||||
// TODO: const translate = user ? user.basicOptions.translatorOn : false;
|
|
||||||
text = await min.conversationalService.translate(
|
text = await min.conversationalService.translate(
|
||||||
min,
|
min,
|
||||||
text,
|
text,
|
||||||
|
|
|
@ -1210,7 +1210,6 @@ export class GBConversationalService {
|
||||||
}
|
}
|
||||||
|
|
||||||
public async sendTextWithOptionsAndUser(min: GBMinInstance, user, step, text, translate, keepTextList) {
|
public async sendTextWithOptionsAndUser(min: GBMinInstance, user, step, text, translate, keepTextList) {
|
||||||
const member = step ? step.context.activity.from : null;
|
|
||||||
|
|
||||||
let replacements = [];
|
let replacements = [];
|
||||||
|
|
||||||
|
@ -1253,10 +1252,12 @@ export class GBConversationalService {
|
||||||
}
|
}
|
||||||
analytics.createMessage(min.instance.instanceId, conversation, null, text);
|
analytics.createMessage(min.instance.instanceId, conversation, null, text);
|
||||||
}
|
}
|
||||||
if (!step && member && !isNaN(member.id) && !member.id.startsWith('1000')) {
|
console.log(GBUtil.toYAML(step));
|
||||||
const to = step.context.activity.group ? step.context.activity.group : member.id;
|
if (step && step.IsRevoked) {
|
||||||
|
|
||||||
|
await min.whatsAppDirectLine.sendToDevice(user.userSystemId,
|
||||||
|
text);
|
||||||
|
|
||||||
await min.whatsAppDirectLine.sendToDevice(to, text, step.context.activity.conversation.id);
|
|
||||||
} else {
|
} else {
|
||||||
await step.context.sendActivity(text);
|
await step.context.sendActivity(text);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue