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: 158

  • ID: AE7CC1

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

  • filters (List of MessagesFilter) – Search filters.

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

Returns:

List of messages.SearchCounter