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

This commit is contained in:
Rodrigo Rodriguez 2022-08-05 20:40:29 -03:00
parent 8194c79828
commit bcc14def98

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':