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}'.`);
|
||||
|
||||
if (user) {
|
||||
// TODO: const translate = user ? user.basicOptions.translatorOn : false;
|
||||
|
||||
text = await min.conversationalService.translate(
|
||||
min,
|
||||
text,
|
||||
|
|
|
@ -1210,7 +1210,6 @@ export class GBConversationalService {
|
|||
}
|
||||
|
||||
public async sendTextWithOptionsAndUser(min: GBMinInstance, user, step, text, translate, keepTextList) {
|
||||
const member = step ? step.context.activity.from : null;
|
||||
|
||||
let replacements = [];
|
||||
|
||||
|
@ -1253,10 +1252,12 @@ export class GBConversationalService {
|
|||
}
|
||||
analytics.createMessage(min.instance.instanceId, conversation, null, text);
|
||||
}
|
||||
if (!step && member && !isNaN(member.id) && !member.id.startsWith('1000')) {
|
||||
const to = step.context.activity.group ? step.context.activity.group : member.id;
|
||||
console.log(GBUtil.toYAML(step));
|
||||
if (step && step.IsRevoked) {
|
||||
|
||||
await min.whatsAppDirectLine.sendToDevice(user.userSystemId,
|
||||
text);
|
||||
|
||||
await min.whatsAppDirectLine.sendToDevice(to, text, step.context.activity.conversation.id);
|
||||
} else {
|
||||
await step.context.sendActivity(text);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue