feat: Added Typebot integration

This commit is contained in:
Davidson Gomes 2023-08-11 20:49:39 -03:00
parent 07ad5756eb
commit c364d3fdca
3 changed files with 3 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -129,6 +129,7 @@ export class TypebotService {
prefilledVariables: {
remoteJid: data.remoteJid,
pushName: data.pushName,
instanceName: instance.instanceName,
},
},
};

View File

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