code-chat-br / whatsapp-api

CodeChat - WhatsApp Api
https://docs.codechat.dev
Apache License 2.0
593 stars 245 forks source link

not getting the whole messages.set on connection open #61

Closed saadnust closed 11 months ago

saadnust commented 1 year ago

Webhook receives only a limited set of messages on connection open, not all.

Which makes to leave unread msgs go unprocessed forever

jrCleber commented 1 year ago

This is common behavior. it is possible that you find this information in the 'chats.set' or 'chats.upsert' event.

saadnust commented 1 year ago

chat.set gives the Jid and chat Id, but I want to get messages by that Jid or ChatId.

On Tue, Aug 8, 2023, 10:58 PM Cleber Wilson @.***> wrote:

This is common behavior. it is possible that you find this information in the 'chats.set' or 'chats.upsert' event.

— Reply to this email directly, view it on GitHub https://github.com/code-chat-br/whatsapp-api/issues/61#issuecomment-1670059557, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK25E3KPBIOLBU7V252CHVDXUJ44DANCNFSM6AAAAAA3FH6ZZQ . You are receiving this because you authored the thread.Message ID: @.***>

jrCleber commented 1 year ago

All messages, whether received or sent, are notified through the "messages.upsert" event.