From f5bd11fc196ff01dd3e9e4673886074748bdafa4 Mon Sep 17 00:00:00 2001 From: Davidson Gomes Date: Tue, 18 Jun 2024 11:34:47 -0300 Subject: [PATCH] feat: add support for documentWithCaptionMessage in WhatsApp Baileys service Modified whatsapp.baileys.service.ts to include handling for documentWithCaptionMessage. This change ensures that messages with documents having captions are properly processed, enhancing the service's message handling capabilities. No impact on existing functionalities. --- src/api/services/channels/whatsapp.baileys.service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/api/services/channels/whatsapp.baileys.service.ts b/src/api/services/channels/whatsapp.baileys.service.ts index 7d20b329..984d5009 100644 --- a/src/api/services/channels/whatsapp.baileys.service.ts +++ b/src/api/services/channels/whatsapp.baileys.service.ts @@ -1186,6 +1186,7 @@ export class BaileysStartupService extends ChannelStartupService { received?.message?.videoMessage || received?.message?.stickerMessage || received?.message?.documentMessage || + received?.message?.documentWithCaptionMessage || received?.message?.audioMessage; const contentMsg = received?.message[getContentType(received.message)] as any;