diff --git a/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts b/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts index 376fd8cb6..8abd6d4c8 100644 --- a/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts +++ b/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts @@ -2131,7 +2131,7 @@ export class BaileysStartupService extends ChannelStartupService { if (options?.mentionsEveryOne) { mentions = group.participants.map((participant) => participant.id); - } else if (options.mentioned?.length) { + } else if (options?.mentioned?.length) { mentions = options.mentioned.map((mention) => { const jid = this.createJid(mention); if (isJidGroup(jid)) {