2018-04-01 13:19:25 +02:00
|
|
|
---
|
|
|
|
title: channelMessagesFilter
|
|
|
|
description: channelMessagesFilter attributes, type and example
|
|
|
|
---
|
|
|
|
## Constructor: channelMessagesFilter
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
|
|
|
|
| Name | Type | Required |
|
|
|
|
|----------|---------------|----------|
|
|
|
|
|ranges|Array of [MessageRange](../types/MessageRange.md) | Yes|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [ChannelMessagesFilter](../types/ChannelMessagesFilter.md)
|
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
|
|
|
```
|
2018-04-01 13:24:46 +02:00
|
|
|
$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'ranges' => [MessageRange, MessageRange]];
|
2018-04-01 13:19:25 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
|
|
|
|
|
|
|
```
|
2018-04-01 13:24:46 +02:00
|
|
|
{"_": "channelMessagesFilter", "ranges": [MessageRange]}
|
2018-04-01 13:19:25 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
|
|
|
|
|
|
```
|
2018-04-01 13:24:46 +02:00
|
|
|
channelMessagesFilter={_='channelMessagesFilter', ranges={MessageRange}}
|
2018-04-01 13:19:25 +02:00
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|