messages.SearchCounter

class pyrogram.raw.types.messages.SearchCounter

Indicates how many results would be found by a messages.search call with the same parameters

Constructor of SearchCounter.

Details:
  • Layer: 223

  • ID: E844EBFF

Parameters:
  • filter (MessagesFilter) – Provided message filter

  • count (int 32-bit) – Number of results that were found server-side

  • inexact (bool, optional) – If set, the results may be inexact

Functions:

This object can be returned by 1 function.

messages.GetSearchCounters

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

TL Schema

messages.searchCounter#e844ebff
flags:#
inexact:flags.1?true
filter:MessagesFilter
count:int

= messages.SearchCounter

Parameter Tree

SearchCounter
├── inexacttrue (optional)
├── filterMessagesFilter
│ │ └── missedtrue (optional)
└── countint

Example

SearchCounter(
    filter=InputMessagesFilterEmpty(),
    count=0,
)