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: 223

  • 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

TL Schema

messages.getSearchResultsPositions#9c7f2f10
flags:#
peer:InputPeer
saved_peer_id:flags.2?InputPeer
filter:MessagesFilter
offset_id:int
limit:int

= messages.SearchResultsPositions

Parameter Tree

GetSearchResultsPositions
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_idlong
│ ├── InputPeerUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ ├── InputPeerChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
├── saved_peer_idInputPeer (optional)
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_idlong
│ ├── InputPeerUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ ├── InputPeerChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
├── filterMessagesFilter
│ │ └── missedtrue (optional)
├── offset_idint
└── limitint

Example

await app.invoke(
    GetSearchResultsPositions(
        peer=await app.resolve_peer(chat_id),
        saved_peer_id=await app.resolve_peer(chat_id),
        filter=InputMessagesFilterEmpty(),
        offset_id=0,
        limit=0,
    )
)