messages.getSearchCounters
Get the number of results that would be found by a messages.search call with the same parameters
Get the number of results that would be found by a [messages.search](https://core.telegram.org/method/messages.search.md) call with the same parameters
| 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. |
top_msg_id | int | No | If set, consider only messages within the specified [forum topic](https://core.telegram.org/api/forum.md#forum-topics) |
filters | Vector<MessagesFilter> | Yes | Search filters |
Replies
Vector<messages.SearchCounter>
MTProto RPC
- 400 · PEER_ID_INVALID — The provided peer id is invalid.