Respondido

Consulta de mensagem lida via API


Oi pessoal,


Estou usando o endpoint Get notifications of a message para verificar se uma mensagem foi entregue.

Minha pergunta é: O que significa exatamente o retorno accepted, dispatched?


Pelo que percebi accepted é quanto é entregue, mas não lida?


@GabrielPetrone

icon

Melhor resposta por GabrielPetrone 29 April 2022, 16:44

Veja o original

1 comentário

Reputação 7
Crachá +1

Fala meu querido! @Bruno_Gabriel

De acordo com nossa docs na seção Notificações:




  • event : Event related to the message. The recipients events depend on the channel and may not be available. The valid values are:


    • accepted : The message has been accepted by the server.


    • dispatched : The message has left the server and was dispatched to recipient.


    • received : The recipient has received the message.


    • consumed : The recipient has read the message.


    • failed : The message has failed. In this case, the property reason must be present.




Então, accept significa que a mensagem chegou lá no WhatsApp e dispatched quer dizer que ela foi enviada pro número de telefone.

Pra saber se foi entregue é o received e se foi lida é o consumed.


Aí sim hein! SEXTOU :thuglifeblip:

Comente