Search code examples
pythonbotframeworkmicrosoft-teams

Is there any way to enable pagination on teams messaging extension search queries?


I am using MS teams search based messaging extension, is there any way to capture scroll event in bot.

So, when the user queries a keyword,with counter=1, response will have top 10 matching results. After scrolling down, i want to hit another query for the same keyword with counter=2, to return next 10 matching results.


Solution

  • Using queryOption array you can enable pagination.

    Pagination parameters:

    skip: Skip count for this query

    count: Number of elements to return.

    Please go through the documentation for more info.