fix(whatsapp.gblib): SEND FILE sending bug.

This commit is contained in:
Rodrigo Rodriguez 2022-08-05 20:40:29 -03:00
parent 1b7bc1a04a
commit 36f1dbf406

View file

@ -620,7 +620,7 @@ export class WhatsappDirectLine extends GBService {
switch (this.provider) {
case 'GeneralBots':
const attachment = MessageMedia.fromUrl(url);
await this.customClient.sendMessage(to, attachment, { caption: caption });
await this.customClient.sendMessage(to += '@c.us', attachment, { caption: caption });
break;
case 'chatapi':