messages.GetSearchCounters

class pyrogram.raw.functions.messages.GetSearchCounters

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

Details:
  • Layer: 194

  • ID: 1BBCF300

Parameters:
  • peer (InputPeer) – Peer where to search

  • filters (List of MessagesFilter) – Search filters

  • saved_peer_id (InputPeer, optional) – Search within the saved message dialog » with this ID.

  • top_msg_id (int 32-bit, optional) – If set, consider only messages within the specified forum topic

Returns:

List of messages.SearchCounter