2019-08-15 20:25:16 +02:00
|
|
|
---
|
|
|
|
title: messages.searchCounter
|
2019-12-27 17:48:04 +01:00
|
|
|
description: Indicates how many results would be found by a [messages.search](../methods/messages.search.md) call with the same parameters
|
2019-08-15 20:25:16 +02:00
|
|
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
|
|
|
---
|
|
|
|
# Constructor: messages.searchCounter
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-12-27 17:48:04 +01:00
|
|
|
Indicates how many results would be found by a [messages.search](../methods/messages.search.md) call with the same parameters
|
2019-08-15 20:25:16 +02:00
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
|
|
|
|
| Name | Type | Required | Description |
|
|
|
|
|----------|---------------|----------|-------------|
|
2019-12-27 17:48:04 +01:00
|
|
|
|inexact|[Bool](../types/Bool.md) | Optional|If set, the results may be inexact|
|
|
|
|
|filter|[MessagesFilter](../types/MessagesFilter.md) | Yes|Provided message filter|
|
|
|
|
|count|[int](../types/int.md) | Yes|Number of results that were found server-side|
|
2019-08-15 20:25:16 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [messages\_SearchCounter](../types/messages_SearchCounter.md)
|
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
|
|
|
```php
|
|
|
|
$messages_searchCounter = ['_' => 'messages.searchCounter', 'inexact' => Bool, 'filter' => MessagesFilter, 'count' => int];
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
|
|
```lua
|
|
|
|
messages_searchCounter={_='messages.searchCounter', inexact=Bool, filter=MessagesFilter, count=int}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|