fix: start session

This commit is contained in:
Davidson Gomes 2023-10-25 07:00:58 -03:00
parent d8629e53f1
commit 50e1efe5d7

View File

@ -1601,7 +1601,7 @@ export class WAStartupService {
); );
} }
if (this.localTypebot.enabled) { if (this.localTypebot.enabled || this.localTypebot.sessions?.length > 0) {
if (!(this.localTypebot.listening_from_me === false && messageRaw.key.fromMe === true)) { if (!(this.localTypebot.listening_from_me === false && messageRaw.key.fromMe === true)) {
await this.typebotService.sendTypebot( await this.typebotService.sendTypebot(
{ instanceName: this.instance.name }, { instanceName: this.instance.name },