From b4d1148d6a7ed7418c183faf070fe3f5f0a5dc25 Mon Sep 17 00:00:00 2001 From: Victor Calazans Date: Sun, 22 Jun 2025 09:40:14 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20Phone=20number=20as=20mes?= =?UTF-8?q?sage=20ID=20for=20Evo=20AI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/integrations/chatbot/evoai/services/evoai.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/integrations/chatbot/evoai/services/evoai.service.ts b/src/api/integrations/chatbot/evoai/services/evoai.service.ts index 61667674..173ebe34 100644 --- a/src/api/integrations/chatbot/evoai/services/evoai.service.ts +++ b/src/api/integrations/chatbot/evoai/services/evoai.service.ts @@ -70,7 +70,7 @@ export class EvoaiService extends BaseChatbotService { } const callId = `req-${uuidv4().substring(0, 8)}`; - const messageId = msg?.key?.id || uuidv4(); + const messageId = remoteJid.split('@')[0] || uuidv4(); // Use phone number as messageId // Prepare message parts const parts = [