Raw.messages.GetSearchCounters

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

Results

Array of Raw.messages.TypeSearchCounter