From 7a01cdf0ef1cc9a7ee85b4ca2c7b46b8228c10db Mon Sep 17 00:00:00 2001 From: Davidson Gomes Date: Tue, 29 Oct 2024 16:11:29 -0300 Subject: [PATCH] fix: receive buttons and list response in integrations --- src/utils/getConversationMessage.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/getConversationMessage.ts b/src/utils/getConversationMessage.ts index 10c2f16e..c1d93f58 100644 --- a/src/utils/getConversationMessage.ts +++ b/src/utils/getConversationMessage.ts @@ -15,8 +15,9 @@ const getTypeMessage = (msg: any) => { msg?.message?.viewOnceMessageV2?.message?.imageMessage?.url || msg?.message?.viewOnceMessageV2?.message?.videoMessage?.url || msg?.message?.viewOnceMessageV2?.message?.audioMessage?.url, - listResponseMessage: msg?.message?.listResponseMessage?.singleSelectReply?.selectedRowId, + listResponseMessage: msg?.message?.listResponseMessage?.title, responseRowId: msg?.message?.listResponseMessage?.singleSelectReply?.selectedRowId, + templateButtonReplyMessage: msg?.message?.templateButtonReplyMessage?.selectedId, // Medias audioMessage: msg?.message?.speechToText ? msg?.message?.speechToText