messages.GetSearchResultsPositions#

class pyrogram.raw.functions.messages.GetSearchResultsPositions#

Returns sparse positions of messages of the specified type in the chat to be used for shared media scroll implementation.

Details:
  • Layer: 158

  • ID: 6E9583A3

Parameters:
  • peer (InputPeer) – Peer where to search.

  • filter (MessagesFilter) – Message filter, inputMessagesFilterEmpty, inputMessagesFilterMyMentions filters are not supported by this method.

  • offset_id (int 32-bit) – Offsets for pagination.

  • limit (int 32-bit) – Maximum number of results to return, see pagination.

Returns:

messages.SearchResultsPositions