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 | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
peer | InputPeer | Ja | Peer where to search |
saved_peer_id | InputPeer | Nein | Search within the [saved message dialog »](https://core.telegram.org/api/saved-messages.md) with this ID. |
top_msg_id | int | Nein | If set, consider only messages within the specified [forum topic](https://core.telegram.org/api/forum.md#forum-topics) |
filters | Vector<MessagesFilter> | Ja | Search filters |
Antworten
Vector<messages.SearchCounter>
MTProto RPC
- 400 · PEER_ID_INVALID – Die angegebene Peer-ID ist ungültig.