diff --git a/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts b/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts index 5c317459..79167858 100644 --- a/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts +++ b/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts @@ -1914,7 +1914,7 @@ export class BaileysStartupService extends ChannelStartupService { throw new NotFoundException('Group not found'); } - if (options.mentionsEveryOne) { + if (options?.mentionsEveryOne) { mentions = group.participants.map((participant) => participant.id); } else if (options.mentioned?.length) { mentions = options.mentioned.map((mention) => {