From 8025db485e5f405eaa4b3f65ceb7d1c4178ac8e0 Mon Sep 17 00:00:00 2001 From: "me@rodrigorodriguez.com" Date: Fri, 4 Oct 2024 01:40:28 -0300 Subject: [PATCH] new(basic.gblib): SEND FILE pdf as temporary images. --- packages/whatsapp.gblib/services/WhatsappDirectLine.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/whatsapp.gblib/services/WhatsappDirectLine.ts b/packages/whatsapp.gblib/services/WhatsappDirectLine.ts index bdbb53d0..f12c7cb9 100644 --- a/packages/whatsapp.gblib/services/WhatsappDirectLine.ts +++ b/packages/whatsapp.gblib/services/WhatsappDirectLine.ts @@ -743,7 +743,7 @@ export class WhatsappDirectLine extends GBService { to = to + '@c.us'; } } - + GBLogEx.info(this.min, `WhatsApp isViewOnce 2${isViewOnce}`); await this.customClient.sendMessage(to, attachment, { caption: caption, isViewOnce }); break; } @@ -984,6 +984,7 @@ export class WhatsappDirectLine extends GBService { } } if ((await this.customClient.getState()) === WAState.CONNECTED) { + GBLogEx.info(this.min, `WhatsApp isViewOnce ${isViewOnce}`); await this.customClient.sendMessage(to, msg, { isViewOnce }); } else { GBLogEx.info(this.min, `WhatsApp OFFLINE ${to}: ${msg}`);