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

This commit is contained in:
Rodrigo Rodriguez 2022-08-05 20:30:57 -03:00
parent 955843363c
commit 8194c79828

View file

@ -619,7 +619,7 @@ export class WhatsappDirectLine extends GBService {
let options;
switch (this.provider) {
case 'GeneralBots':
const attachment = MessageMedia.fromurl(url);
const attachment = MessageMedia.fromUrl(url);
await this.customClient.sendMessage(to, attachment, { caption: caption });
break;
@ -682,7 +682,7 @@ export class WhatsappDirectLine extends GBService {
switch (this.provider) {
case 'GeneralBots':
const attachment = MessageMedia.fromurl(url);
const attachment = MessageMedia.fromUrl(url);
await this.customClient.sendMessage(to, attachment);
break;