Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adicionado message.status ao webhook MESSAGES_SET #543

Merged

Conversation

PauloAK
Copy link
Contributor

@PauloAK PauloAK commented Apr 18, 2024

Ajuste para adicionar o status da mensagem junto ao webhook MESSAGES_SET, disparado com o evento messaging-history.set da baileys.

Ajuste visando facilitar a identificação do status da mensagem (pendente, entregue, lido, ...) no momento da importação do histórico.

Estou utilizando esse ajuste no meu fork a algum tempo, tem funcionado sem problemas.


O que muda?
Um novo campo status é enviado no conteudo do webhook MESSAGES_SET, possiveis valores são:

 'ERROR' | 'PENDING' | 'SERVER_ACK' | 'DELIVERY_ACK' | 'READ' | 'PLAYED'

(basicamente os valores disponiveis em wa.StatusMessage no formato de string.)

Obs.: Não consegui testar com Chatwoot e Typebot, utilizo apenas a api "pura"

@DavidsonGomes DavidsonGomes changed the base branch from main to develop April 18, 2024 19:05
@DavidsonGomes DavidsonGomes merged commit 234a2c7 into EvolutionAPI:develop Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants