Closed ishimko closed 1 year ago
TDLib 1.8.10 has a single parameter offset
: "Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results" to simplify pagination.
Thanks @levlam! Seems like the nuget package I use for .NET bindings is still on 1.8.9, I'll find another way then.
When using
searchMessages
method, I am unable to "paginate" through results by providing offset chat and message, even when providing those, I keep getting the same results from the beginning. After the first request I take message and chat ids from the last returned message and provide them for the second request, but still getting same response from the beginning.I use C# bindings for tdlib.
The first request:
The response for the first request:
The second request:
The response for the second request:
Am I doing something wrong?