messages.getSearchCounters

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>;

Parameters

Name Type Description
peer InputPeer Peer where to search
filters Vector<MessagesFilter> Search filters

Result

Vector<messages.SearchCounter>

Possible errors

Code Type Description
400 PEER_ID_INVALID The provided peer id is invalid.

Related pages

messages.search

Returns found messages