Hello
I need to process only the latest messages (since my previous check). How would I do that?

I have the message id of the last message that I received. I would like to perform a search for all messages that have come in after this id.