fix: update WhatsApp Baileys service

Modified the WhatsApp Baileys service in channels to fix an issue. This change addresses a bug that was causing incorrect message handling. The update ensures more reliable communication through the WhatsApp API.
This commit is contained in:
Davidson Gomes 2024-06-17 13:48:46 -03:00
parent d45e303d55
commit 549224ac16

View File

@ -1127,6 +1127,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;