mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-14 01:41:24 -06:00
fix: change answer to message on Evolution Bot
This commit is contained in:
parent
d776770d09
commit
b8d6e55fba
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user