MadelineProtoDocs/old_docs/API_docs_v104/constructors/messages.searchCounter.md
2019-12-27 18:25:37 +01:00

1.2 KiB

title description image
messages.searchCounter Indicates how many results would be found by a [messages.search](../methods/messages.search.md) call with the same parameters https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: messages.searchCounter

Back to constructors index

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

Attributes:

Name Type Required Description
inexact Bool Optional If set, the results may be inexact
filter MessagesFilter Yes Provided message filter
count int Yes Number of results that were found server-side

Type: messages.SearchCounter

Example:

$messages.searchCounter = ['_' => 'messages.searchCounter', 'inexact' => Bool, 'filter' => MessagesFilter, 'count' => int];

Or, if you're into Lua:

messages.searchCounter={_='messages.searchCounter', inexact=Bool, filter=MessagesFilter, count=int}