Pagination is used as there are lots of River API methods that have access to large lists of objects which require fetch only a proper subset of results for each request that be called. There are some input parameters for it.
We already have used pagination in two cases, getDialouge and messagesGetHistory methods.
The getDialouge needs offset and limit parameters, and messagesGetHistory calls offset, max_id, and min_id parameters.
limit: the number of objects that will be returned. This parameter is more than zero and less than or equal to 100.
offset: Refer to the start point. Results from offset up to the limit value will be returned. If the offset equals zero means we must start from the beginning of the list.
max_id: Can be used to only return results with ID smaller than max_id
min_id: Can be used to only return results with ID greater than min_id