Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

message read status update #775

Open
xinkyo opened this issue Aug 23, 2023 · 3 comments
Open

message read status update #775

xinkyo opened this issue Aug 23, 2023 · 3 comments

Comments

@xinkyo
Copy link

xinkyo commented Aug 23, 2023

here I have implement the code to get the funtion of message read status of webhook
now you could get he message status update if it is deliver or read

src/api/class/instance.js
line 318

sock?.ev.on('messages.update', async (messages) => {

console.log('messages.update')
 console.log(messages)
      if (
            ['all', 'messages', 'messages.update'].some((e) =>
                config.webhookAllowedEvents.includes(e)
            )
        )
    await this.SendWebhook('messageupdate', { 
       messages
    }, this.key);

})

@salman0ansari
Copy link
Owner

?

@xinkyo
Copy link
Author

xinkyo commented Aug 23, 2023

if message was delivered, webhook would get status=3, if message was read, status=4

@LuisArteModelo
Copy link

Yes @xinkyo, this webhook call is correct, but.. if the recipient is offline? How to ensure that the message was sent at least to the whatsapp "server"?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants