🐛 fix: Phone number as message ID for Evo AI

This commit is contained in:
Victor Calazans 2025-06-22 09:40:14 -03:00
parent f4fbc4afc6
commit b4d1148d6a

View File

@ -70,7 +70,7 @@ export class EvoaiService extends BaseChatbotService<Evoai, EvoaiSetting> {
}
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 = [