Get the number of results that would be found by a messages.search call with the same parameters
---functions---
messages.getSearchCounters#ae7cc1 flags:# peer:InputPeer top_msg_id:flags.0?int filters:Vector<MessagesFilter> = Vector<messages.SearchCounter>;
Name | Type | Description |
---|---|---|
flags | # | Flags, see TL conditional fields |
peer | InputPeer | Peer where to search |
top_msg_id | flags.0?int | If set, consider only messages within the specified forum topic |
filters | Vector<MessagesFilter> | Search filters |
Vector<messages.SearchCounter>
Code | Type | Description |
---|---|---|
400 | PEER_ID_INVALID | The provided peer id is invalid. |
Telegram allows creating forums with multiple distinct topics.
Returns found messages