fix: change answer to message on Evolution Bot

This commit is contained in:
Davidson Gomes 2024-08-26 15:32:44 -03:00
parent d776770d09
commit b8d6e55fba

View File

@ -100,7 +100,7 @@ export class EvolutionBotService {
if (instance.integration === Integration.WHATSAPP_BAILEYS)
await instance.client.sendPresenceUpdate('paused', remoteJid);
const message = response?.data?.answer;
const message = response?.data?.message;
return message;
}
@ -299,6 +299,10 @@ export class EvolutionBotService {
const message = await this.sendMessageToBot(instance, session, bot, remoteJid, pushName, content);
if (!message) {
return;
}
await this.sendMessageWhatsApp(instance, remoteJid, session, settings, message);
return;