Raw.messages.GetSearchResultsPositions

Raw.messages.GetSearchResultsPositions

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

messages.getSearchResultsPositions#9c7f2f10 flags:# peer:InputPeer saved_peer_id:flags.2?InputPeer filter:MessagesFilter offset_id:int limit:int = messages.SearchResultsPositions;
export namespace Raw {
  export namespace messages {
    export class GetSearchResultsPositions {
      constructor(params: {
        peer: Raw.TypeInputPeer;
        savedPeerId?: Raw.TypeInputPeer;
        filter: Raw.TypeMessagesFilter;
        offsetId: number;
        limit: number;
      }) {}
    }
  }
}

This is a function constructor, you can use it as method when call invoke

Layer: 185
Constructor ID: 0x9c7f2f10

Property

  • peer : Raw.TypeInputPeer

    Peer where to search

  • savedPeerId : Raw.TypeInputPeer or undefined

    Search within the saved message dialog with this id.

  • filter : Raw.TypeMessagesFilter

    Message filter, inputmessagesfilterempty, inputmessagesfiltermymentions filters are not supported by this method.

  • offsetId : number

    Offsets for pagination, for more info click here

  • limit : number

    Maximum number of results to return, see pagination

Results

Raw.messages.TypeSearchResultsPositions