messages.getSearchCounters #

Get the number of results that would be found by a messages.search call with the same parameters

Layer 223

---functions---
messages.getSearchCounters#1bbcf300 flags:# peer:InputPeer saved_peer_id:flags.2?InputPeer top_msg_id:flags.0?int filters:Vector<MessagesFilter> = Vector<messages.SearchCounter>;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
peerInputPeerPeer where to search
saved_peer_idflags.2?InputPeerSearch within the saved message dialog » with this ID.
top_msg_idflags.0?intIf set, consider only messages within the specified forum topic
filtersVector<MessagesFilter>Search filters

Result #

Vector<messages.SearchCounter>

Only users can use this method #

Possible errors #

CodeTypeDescription
400PEER_ID_INVALIDThe provided peer id is invalid.

Saved messages #

The Saved Messages chat allows users to bookmark messages and media: it's a personal cloud storage for any messages or media you may want to send or forward there.

Forum topics #

Telegram allows creating forums with multiple distinct topics.

Search for messages.