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.
This commit is contained in:
Davidson Gomes 2024-06-18 11:34:47 -03:00
parent c060d330de
commit f5bd11fc19

View File

@ -1186,6 +1186,7 @@ export class BaileysStartupService extends ChannelStartupService {
received?.message?.videoMessage || received?.message?.videoMessage ||
received?.message?.stickerMessage || received?.message?.stickerMessage ||
received?.message?.documentMessage || received?.message?.documentMessage ||
received?.message?.documentWithCaptionMessage ||
received?.message?.audioMessage; received?.message?.audioMessage;
const contentMsg = received?.message[getContentType(received.message)] as any; const contentMsg = received?.message[getContentType(received.message)] as any;