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));