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

want to find unread messages on connection open #59

Closed
saadnust opened this issue Aug 2, 2023 · 2 comments
Closed

want to find unread messages on connection open #59

saadnust opened this issue Aug 2, 2023 · 2 comments

Comments

@saadnust
Copy link

saadnust commented Aug 2, 2023

Need for webhook call with unread messages when a connection is opens OR Endpoint to fetch unread only!

@Yashasv-Prajapati
Copy link

Hey @jrCleber, I wish to contribute to this issue. I've been reading the code base and have set it up for development. I came across the function markMessageAsRead and other functions to fetch messages, however, I can't seem to find anything that somehow gives count or anything related to unread Messages.

I couldn't find anything related to it in Baileys either.

Could you please guide me towards solving this issue?

@jrCleber
Copy link
Contributor

That's a good question. There really isn't anything implemented about this in the library. Because the recipient of the message may have disabled read confirmation, so the message read event is not emitted.
You need to implement this on your side, with an accountant for example.

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

No branches or pull requests

3 participants