From e8ef337d5d9f7643f8b6b454ccb9b3bb23f0104e Mon Sep 17 00:00:00 2001 From: Luis-Fernando <136400011+Azzybot@users.noreply.github.com> Date: Tue, 2 Apr 2024 14:23:07 -0300 Subject: [PATCH] Recurso para coletar tipo de mensagem MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Variável {{messageType}} adicionada para ser usada dentro do fluxo e a partir disso usar condições para fluxo seguir de acordo com o tipo de mensagem recebida: Exemplo: if {{messageTyp}} = audioMessage if {{messageTyp}} = videoMessage if {{messageTyp}} = imageMessage if {{messageTyp}} = document if {{messageTyp}} = conversation --- src/whatsapp/dto/typebot.dto.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/whatsapp/dto/typebot.dto.ts b/src/whatsapp/dto/typebot.dto.ts index c6c1fbdd..6adfcf33 100644 --- a/src/whatsapp/dto/typebot.dto.ts +++ b/src/whatsapp/dto/typebot.dto.ts @@ -10,6 +10,7 @@ export class Session { export class PrefilledVariables { remoteJid?: string; pushName?: string; + messageType?: string; additionalData?: { [key: string]: any }; }