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

get only unread messages #95

Open
blackdiamont opened this issue Oct 17, 2022 · 0 comments
Open

get only unread messages #95

blackdiamont opened this issue Oct 17, 2022 · 0 comments

Comments

@blackdiamont
Copy link

Hi!

I've just started with Go and want to rewrite my bot (php-code).
So far I get messages and mark them as read without a problem. But I don't see any way to get only unread messages.

On php I'm using the next_batch with the count of unread messages per room (rooms//messages?from=<next_batch>&dir=b&limit=<unread_count>)

I've seen next_batch in the source, but still don't get how I can use it >.<

How do I achieve this? :)

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

No branches or pull requests

1 participant