refactor(whatsapp.business.service): enhance media handling and audio processing

- Updated media message preparation to conditionally include filename and caption based on media type.
- Improved error handling in media ID retrieval and audio processing methods.
- Refactored audio processing to support file uploads and URL handling more effectively.
- Enhanced logging for better error tracking during media operations.
This commit is contained in:
Davidson Gomes
2025-06-12 17:28:02 -03:00
parent bc451e8493
commit a02ecc88f5
2 changed files with 115 additions and 54 deletions

View File

@@ -1819,7 +1819,7 @@ export class BaileysStartupService extends ChannelStartupService {
// setTimeout(() => this.client.terminateCall(call.id, call.to), callDuration * 1000);
// return call;
return { id: '123' };
return { id: '123', jid, isVideo, callDuration };
} catch (error) {
return error;
}