Skip to content

Commit

Permalink
Merge pull request #1119 from MarksonSolutions/develop
Browse files Browse the repository at this point in the history
send audio using sendWhatsAppAudio route, wabussines
  • Loading branch information
DavidsonGomes authored Jan 6, 2025
2 parents d5c2cfb + bfba702 commit 16daf9b
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit 16daf9b

Please sign in to comment.