mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-26 10:28:38 -06:00
2 - Start Typebot com opcao de ativar chatbot ou não.Update typebot.service.ts
- Atualizado para que a variável enabled_typebot não seja obrigatória, compatibilizando com requisições de versões antigas da Evolution API. - Se omitida a variável enabled_typebot , será assumida como true, ou seja, start tybebot com chatbot ativado - Se setada como true, o flow disparado é ativado como chatbot (original do Typebot), porém se false, dispara apenas como se fosse uma notificação e nao ativa o bot.
This commit is contained in:
parent
f0ff4873b5
commit
1d83e2c7a2
@ -118,7 +118,10 @@ export class TypebotService {
|
||||
prefilledVariables[variable.name] = variable.value;
|
||||
});
|
||||
// linha incluida por Francis:
|
||||
if (enabled_typebot === true) {
|
||||
if (enabled_typebot !== false ) {
|
||||
|
||||
let enabled_typebot = true;
|
||||
|
||||
|
||||
const response = await this.createNewSession(instance, {
|
||||
url: url,
|
||||
@ -191,6 +194,23 @@ const id = Math.floor(Math.random() * 10000000000).toString();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// ate aqui
|
||||
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user