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. Returns the results in reverse chronological order (i.e., in order of decreasing message_id).

Details:
  • Layer: 211

  • ID: 9C7F2F10

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, for more info click here

limit (int 32-bit):

Maximum number of results to return, see pagination

saved_peer_id (InputPeer, optional):

Search within the saved message dialog » with this ID.

Returns:

messages.SearchResultsPositions