new(basic.gblib): SEND FILE pdf as temporary images.
This commit is contained in:
parent
0b10992f3e
commit
8025db485e
1 changed files with 2 additions and 1 deletions
|
@ -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}`);
|
||||
|
|
Loading…
Add table
Reference in a new issue