Solução para que o bot interaja com o cliente apos a trasferencia do ticket.

pull/20/head
adriano 2022-11-20 10:34:40 -03:00
parent 0113f1a73c
commit 991d958f20
1 changed files with 1 additions and 1 deletions

View File

@ -1002,7 +1002,7 @@ const handleMessage = async (
await sendDialogflowAwswer(wbot, ticket, msg, contact, chat);
}
else if (botInfo.isOnQueue && !msg.fromMe && msg.body=='0'){
else if (botInfo.isOnQueue && !msg.fromMe && msg.body=='0' && ticket.status == 'pending'){
console.log('Entrou onde não devia..........')