messages-web icon indicating copy to clipboard operation
messages-web copied to clipboard

Added pagination in getInbox.

Open shivamsn97 opened this issue 4 years ago • 2 comments

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.

shivamsn97 avatar Mar 07 '21 18:03 shivamsn97

Have you tested?

SwapnilSoni1999 avatar Mar 08 '21 05:03 SwapnilSoni1999

No, not on your version, but have tested on python version. Have used same logic in both versions.

shivamsn97 avatar Mar 08 '21 11:03 shivamsn97