alteração slm

pull/20/head
adriano 2023-07-25 18:09:13 -03:00
parent d0cad92243
commit e88fd8da98
1 changed files with 6 additions and 0 deletions

View File

@ -463,6 +463,12 @@ async function sendDelayedMessages(
await SendWhatsAppMessage({ body: response, ticket }); await SendWhatsAppMessage({ body: response, ticket });
if (valid && valid.data.result == "open") { 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 == "notfound") {
} else if (valid && valid.data.result == "close") { } else if (valid && valid.data.result == "close") {
await new Promise(f => setTimeout(f, 1000)); await new Promise(f => setTimeout(f, 1000));