fix: Acttive typebot with messages from me

This commit is contained in:
netoeymard 2023-08-22 17:26:09 -03:00 committed by franciscoeymardneto
parent 530aec92a9
commit 160ebcc609

View File

@ -1383,7 +1383,7 @@ export class WAStartupService {
);
}
if (this.localTypebot.enabled && messageRaw.key.remoteJid.includes('@s.whatsapp.net')) {
if (this.localTypebot.enabled && messageRaw.key.remoteJid.includes('@s.whatsapp.net') && !messageRaw.key.fromMe) {
await this.typebotService.sendTypebot(
{ instanceName: this.instance.name },
messageRaw.key.remoteJid,