Skip to content

Commit

Permalink
new(basic.gblib): SEND FILE pdf as temporary images.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Oct 4, 2024
1 parent 0b10992 commit 8025db4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/whatsapp.gblib/services/WhatsappDirectLine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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}`);
Expand Down

0 comments on commit 8025db4

Please sign in to comment.