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

42 lines
1.2 KiB
Markdown
Raw Normal View History

2019-06-23 13:07:51 +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-06-23 13:07:51 +02:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
2019-12-27 18:46:25 +01:00
redirect_from: /API_docs/constructors/messages_searchCounter.html
2019-06-23 13:07:51 +02:00
---
# 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-06-23 13:07:51 +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-06-23 13:07:51 +02:00
2019-12-27 18:25:37 +01:00
### Type: [messages.SearchCounter](../types/messages.SearchCounter.md)
2019-06-23 13:07:51 +02:00
### Example:
```php
2019-12-27 18:25:37 +01:00
$messages.searchCounter = ['_' => 'messages.searchCounter', 'inexact' => Bool, 'filter' => MessagesFilter, 'count' => int];
2019-06-23 13:07:51 +02:00
```
Or, if you're into Lua:
```lua
2019-12-27 18:25:37 +01:00
messages.searchCounter={_='messages.searchCounter', inexact=Bool, filter=MessagesFilter, count=int}
2019-06-23 13:07:51 +02:00
```