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

This commit is contained in:
me@rodrigorodriguez.com 2024-10-04 01:40:28 -03:00
parent 0b10992f3e
commit 8025db485e

View file

@ -743,7 +743,7 @@ export class WhatsappDirectLine extends GBService {
to = to + '@c.us'; to = to + '@c.us';
} }
} }
GBLogEx.info(this.min, `WhatsApp isViewOnce 2${isViewOnce}`);
await this.customClient.sendMessage(to, attachment, { caption: caption, isViewOnce }); await this.customClient.sendMessage(to, attachment, { caption: caption, isViewOnce });
break; break;
} }
@ -984,6 +984,7 @@ export class WhatsappDirectLine extends GBService {
} }
} }
if ((await this.customClient.getState()) === WAState.CONNECTED) { if ((await this.customClient.getState()) === WAState.CONNECTED) {
GBLogEx.info(this.min, `WhatsApp isViewOnce ${isViewOnce}`);
await this.customClient.sendMessage(to, msg, { isViewOnce }); await this.customClient.sendMessage(to, msg, { isViewOnce });
} else { } else {
GBLogEx.info(this.min, `WhatsApp OFFLINE ${to}: ${msg}`); GBLogEx.info(this.min, `WhatsApp OFFLINE ${to}: ${msg}`);