messages-web
messages-web copied to clipboard
Added pagination in getInbox.
getInbox function now accepts two arguments: start and limit (both integers) start - Specifies the starting index of the results. (index starts from 0) limit - Specifies how many elements we want after the start value. Use -1 for infinite. The default value is 50. For example: start = 10 and limit = 4 will return the 11th, 12th,13th and 14th elements.
Have you tested?
No, not on your version, but have tested on python version. Have used same logic in both versions.