go icon indicating copy to clipboard operation
go copied to clipboard

get only unread messages

Open blackdiamont opened this issue 1 year ago • 0 comments

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? :)

blackdiamont avatar Oct 17 '22 12:10 blackdiamont