new(basic.gblib): SEND FILE pdf as temporary images.

This commit is contained in:
me@rodrigorodriguez.com 2024-10-03 14:44:48 -03:00
parent 16aae3f6e6
commit c9d2499e31

View file

@ -1252,14 +1252,17 @@ export class GBConversationalService {
}
analytics.createMessage(min.instance.instanceId, conversation, null, text);
}
console.log(GBUtil.toYAML(step));
if (step && step.IsRevoked) {
await min.whatsAppDirectLine.sendToDevice(user.userSystemId,
text);
} else {
try{
// TODO: Remove MS BOT Framework and put GBNative.
await step.context.sendActivity(text);
} catch {
await min.whatsAppDirectLine.sendToDevice(user.userSystemId,
text);
}
}
public async broadcast(min: GBMinInstance, message: string) {