fix(whatsapp.gblib): SEND FILE sending bug.
This commit is contained in:
parent
955843363c
commit
8194c79828
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue