diff --git a/src/channels/whatsapp.ts b/src/channels/whatsapp.ts index 3a4df46..9b05f96 100644 --- a/src/channels/whatsapp.ts +++ b/src/channels/whatsapp.ts @@ -170,6 +170,10 @@ export class WhatsAppChannel implements Channel { msg.message?.imageMessage?.caption || msg.message?.videoMessage?.caption || ''; + + // Skip protocol messages with no text content (encryption keys, read receipts, etc.) + if (!content) continue; + const sender = msg.key.participant || msg.key.remoteJid || ''; const senderName = msg.pushName || sender.split('@')[0];