MadelineProtoDocs/docs/API_docs/constructors/messages.searchCounter.md

33 lines
1.1 KiB
Markdown
Raw Normal View History

2024-05-01 14:53:46 +02:00
---
title: "messages.searchCounter"
description: "Indicates how many results would be found by a messages.search call with the same parameters"
nav_exclude: true
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/messages_searchCounter.html
---
# Constructor: messages.searchCounter
[Back to constructors index](/API_docs/constructors/index.html)
Indicates how many results would be found by a [messages.search](../methods/messages.search.html) call with the same parameters
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|inexact|[Bool](/API_docs/types/Bool.html) | Optional|If set, the results may be inexact|
|filter|[MessagesFilter](/API_docs/types/MessagesFilter.html) | Yes|Provided message filter|
|count|[int](/API_docs/types/int.html) | Yes|Number of results that were found server-side|
### Type: [messages.SearchCounter](/API_docs/types/messages.SearchCounter.html)
### Example:
```
$messages_searchCounter = ['_' => 'messages.searchCounter', 'inexact' => Bool, 'filter' => MessagesFilter, 'count' => int];
```