Raw.messages.GetSearchCounters
Get the number of results that would be found by a messages.search call with the same parameters
messages.getSearchCounters#1bbcf300 flags:# peer:InputPeer saved_peer_id:flags.2?InputPeer top_msg_id:flags.0?int filters:Vector<MessagesFilter> = Vector<messages.SearchCounter>;
export namespace Raw {
export namespace messages {
export class GetSearchCounters {
constructor(params: {
peer: Raw.TypeInputPeer;
savedPeerId?: Raw.TypeInputPeer;
topMsgId?: number;
filters: Array<Raw.TypeMessagesFilter>;
}) {}
}
}
}
This is a function constructor, you can use it as method when call invoke
Layer: 185
Constructor ID: 0x1bbcf300
Property
peer
: Raw.TypeInputPeerPeer where to search
savedPeerId
: Raw.TypeInputPeer or undefinedSearch within the saved message dialog with this id.
topMsgId
: number or undefinedIf set, consider only messages within the specified forum topic
filters
: Array of Raw.TypeMessagesFilterSearch filters