mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-14 09:51:24 -06:00
feat: Added Typebot integration
This commit is contained in:
parent
07ad5756eb
commit
c364d3fdca
1
Extras/typebot/typebot-example.json
Normal file
1
Extras/typebot/typebot-example.json
Normal file
File diff suppressed because one or more lines are too long
@ -129,6 +129,7 @@ export class TypebotService {
|
|||||||
prefilledVariables: {
|
prefilledVariables: {
|
||||||
remoteJid: data.remoteJid,
|
remoteJid: data.remoteJid,
|
||||||
pushName: data.pushName,
|
pushName: data.pushName,
|
||||||
|
instanceName: instance.instanceName,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -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(
|
await this.typebotService.sendTypebot(
|
||||||
{ instanceName: this.instance.name },
|
{ instanceName: this.instance.name },
|
||||||
messageRaw.key.remoteJid,
|
messageRaw.key.remoteJid,
|
||||||
|
Loading…
Reference in New Issue
Block a user