new(basic.gblib): SEND FILE pdf as temporary images.
This commit is contained in:
parent
31215d8421
commit
7ed8979c73
2 changed files with 8 additions and 5 deletions
|
@ -1430,7 +1430,7 @@ export class DialogKeywords {
|
|||
GBLog.verbose(`Translated text(playMarkdown): ${text}.`);
|
||||
|
||||
if (step) {
|
||||
await min.conversationalService.sendText(min, step, text);
|
||||
await min.conversationalService.sendText(min, step, text, user);
|
||||
} else {
|
||||
await min.conversationalService['sendOnConversation'](min, user, text);
|
||||
}
|
||||
|
|
|
@ -1196,13 +1196,16 @@ export class GBConversationalService {
|
|||
}
|
||||
}
|
||||
|
||||
public async sendText(min: GBMinInstance, step, text) {
|
||||
await this['sendTextWithOptions'](min, step, text, true, null);
|
||||
public async sendText(min: GBMinInstance, step, text, user = null) {
|
||||
await this['sendTextWithOptions'](min, step, text, true, null, user);
|
||||
}
|
||||
|
||||
public async sendTextWithOptions(min: GBMinInstance, step, text, translate, keepTextList) {
|
||||
public async sendTextWithOptions(min: GBMinInstance, step, text, translate, keepTextList, user) {
|
||||
let sec = new SecService();
|
||||
let user = await sec.getUserFromSystemId(step.context.activity.from.id);
|
||||
|
||||
if (!user){
|
||||
user = await sec.getUserFromSystemId(step.context.activity.from.id);
|
||||
}
|
||||
await this['sendTextWithOptionsAndUser'](min, user, step, text, true, null);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue