diff --git a/src/api/integrations/channel/meta/whatsapp.business.service.ts b/src/api/integrations/channel/meta/whatsapp.business.service.ts index 921d0e6d..17041066 100644 --- a/src/api/integrations/channel/meta/whatsapp.business.service.ts +++ b/src/api/integrations/channel/meta/whatsapp.business.service.ts @@ -1100,7 +1100,11 @@ export class BusinessStartupService extends ChannelStartupService { if (file?.buffer) { mediaData.audio = file.buffer.toString('base64'); - } else { + } + else if(isURL(mediaData.audio)){ + mediaData.audio = mediaData.audio + } + else { console.error('El archivo no tiene buffer o file es undefined'); throw new Error('File or buffer is undefined'); }