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:
223ID:
E844EBFF
- Parameters:
filter (
MessagesFilter) – Provided message filtercount (
int32-bit) – Number of results that were found server-sideinexact (
bool, optional) – If set, the results may be inexact
- Functions:
This object can be returned by 1 function.
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
├── inexact →
true (optional)├── filter →
MessagesFilter│ ├──
InputMessagesFilterEmpty│ ├──
InputMessagesFilterVideo│ ├──
InputMessagesFilterUrl│ ├──
InputMessagesFilterGif│ ├──
InputMessagesFilterVoice│ ├──
InputMessagesFilterMusic│ │ └── missed →
true (optional)│ ├──
InputMessagesFilterGeo└── count →
intExample
SearchCounter(
filter=InputMessagesFilterEmpty(),
count=0,
)