From be40a46013a2061d91e230281e3610c4a1c10b02 Mon Sep 17 00:00:00 2001 From: rodrigorodriguez Date: Sun, 9 Oct 2022 21:30:14 -0300 Subject: [PATCH] new(all): Custom Domain support per bot. --- packages/whatsapp.gblib/services/WhatsappDirectLine.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/whatsapp.gblib/services/WhatsappDirectLine.ts b/packages/whatsapp.gblib/services/WhatsappDirectLine.ts index 1f6104f5..5e35e709 100644 --- a/packages/whatsapp.gblib/services/WhatsappDirectLine.ts +++ b/packages/whatsapp.gblib/services/WhatsappDirectLine.ts @@ -928,6 +928,13 @@ export class WhatsappDirectLine extends GBService { switch (provider) { case "GeneralBots": + if (req.type && req.type === 'e2e_notification') + { + + return; + } + + id = req.from.split('@')[0]; senderName = req._data.notifyName; text = req.body;