messages.getSearchResultsPositions
Returns sparse positions of messages of the specified type in the chat to be used for shared media scroll implementation.
| Name | Type | Required | Description |
|---|---|---|---|
peer | InputPeer | Yes | Peer where to search |
saved_peer_id | InputPeer | No | Search within the [saved message dialog »](https://core.telegram.org/api/saved-messages.md) with this ID. |
filter | MessagesFilter | Yes | Message filter, [inputMessagesFilterEmpty](https://core.telegram.org/constructor/inputMessagesFilterEmpty.md), [inputMessagesFilterMyMentions](https://core.telegram.org/constructor/inputMessagesFilterMyMentions.md) filters are not supported by this method. |
offset_id | int | Yes | [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md) |
limit | int | Yes | Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md) |
Replies
messages.SearchResultsPositions
MTProto RPC
- 400 · PEER_ID_INVALID — The provided peer id is invalid.