From df924dae40037eff4b9a8525d3bd92117b496e54 Mon Sep 17 00:00:00 2001 From: Renato Alcara Date: Tue, 27 Jan 2026 19:36:26 -0300 Subject: [PATCH] =?UTF-8?q?fix:=20n=C3=A3o=20injetar=20biz=20node=20para?= =?UTF-8?q?=20productList=20do=20cat=C3=A1logo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mensagens de lista de produtos do catálogo WhatsApp Business (PRODUCT_LIST) não precisam de injeção de biz node. O biz node estava causando erro 405. - Retorna undefined em vez de 'native_flow' para PRODUCT_LIST - Afeta apenas productList, não afeta carrossel de mídia Co-Authored-By: Claude Opus 4.5 --- src/Socket/messages-send.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Socket/messages-send.ts b/src/Socket/messages-send.ts index 95b14eec..8680661d 100644 --- a/src/Socket/messages-send.ts +++ b/src/Socket/messages-send.ts @@ -627,8 +627,9 @@ export const makeMessagesSocket = (config: SocketConfig) => { return 'template' } else if (message.listMessage) { // Check if it's a product list (uses PRODUCT_LIST type) + // Product lists from WhatsApp Business catalog don't need biz node injection if (message.listMessage.listType === proto.Message.ListMessage.ListType.PRODUCT_LIST) { - return 'native_flow' + return undefined // No biz node needed for catalog product lists } return 'list' } else if (message.buttonsResponseMessage) { @@ -672,8 +673,9 @@ export const makeMessagesSocket = (config: SocketConfig) => { } else if (innerMessage.templateMessage) { return 'template' } else if (innerMessage.listMessage) { + // Product lists from WhatsApp Business catalog don't need biz node injection if (innerMessage.listMessage.listType === proto.Message.ListMessage.ListType.PRODUCT_LIST) { - return 'native_flow' + return undefined // No biz node needed for catalog product lists } return 'list' } else if (innerMessage.buttonsResponseMessage) {