From e88fd8da98582efeec8094e718d05b211b760663 Mon Sep 17 00:00:00 2001 From: adriano Date: Tue, 25 Jul 2023 18:09:13 -0300 Subject: [PATCH] =?UTF-8?q?altera=C3=A7=C3=A3o=20slm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/services/WbotServices/wbotMessageListener.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backend/src/services/WbotServices/wbotMessageListener.ts b/backend/src/services/WbotServices/wbotMessageListener.ts index 883c83e..3aa7545 100644 --- a/backend/src/services/WbotServices/wbotMessageListener.ts +++ b/backend/src/services/WbotServices/wbotMessageListener.ts @@ -463,6 +463,12 @@ async function sendDelayedMessages( await SendWhatsAppMessage({ body: response, ticket }); if (valid && valid.data.result == "open") { + await new Promise(f => setTimeout(f, 1000)); + + await SendWhatsAppMessage({ + body: `Se deseja adicionar alguma informação ao protocolo acima, digite 2.`, + ticket + }); } else if (valid && valid.data.result == "notfound") { } else if (valid && valid.data.result == "close") { await new Promise(f => setTimeout(f, 1000));