2018-07-12 20:24:55 +02:00
|
|
|
---
|
|
|
|
title: channelBannedRights
|
2018-12-26 02:56:50 +01:00
|
|
|
description: Banned user rights (when true, the user will NOT be able to do that thing)
|
2018-07-12 20:24:55 +02:00
|
|
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
|
|
|
---
|
|
|
|
# Constructor: channelBannedRights
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-12-26 02:56:50 +01:00
|
|
|
Banned user rights (when true, the user will NOT be able to do that thing)
|
|
|
|
|
2018-07-12 20:24:55 +02:00
|
|
|
### Attributes:
|
|
|
|
|
2018-12-26 02:56:50 +01:00
|
|
|
| Name | Type | Required | Description |
|
|
|
|
|----------|---------------|----------|-------------|
|
|
|
|
|view\_messages|[Bool](../types/Bool.md) | Optional|Disallow viewing messages|
|
2019-12-27 17:48:04 +01:00
|
|
|
|send\_messages|[Bool](../types/Bool.md) | Optional||
|
2018-12-26 02:56:50 +01:00
|
|
|
|send\_media|[Bool](../types/Bool.md) | Optional|Disallow sending media|
|
|
|
|
|send\_stickers|[Bool](../types/Bool.md) | Optional|Disallow sending stickers|
|
|
|
|
|send\_gifs|[Bool](../types/Bool.md) | Optional|Disallow sending gifs|
|
|
|
|
|send\_games|[Bool](../types/Bool.md) | Optional|Disallow sending games|
|
|
|
|
|send\_inline|[Bool](../types/Bool.md) | Optional|Disallow sending inline keyboards|
|
|
|
|
|embed\_links|[Bool](../types/Bool.md) | Optional|Disallow embedding links|
|
|
|
|
|until\_date|[int](../types/int.md) | Yes|Until date|
|
2018-07-12 20:24:55 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [ChannelBannedRights](../types/ChannelBannedRights.md)
|
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
2018-10-17 17:10:50 +02:00
|
|
|
```php
|
2018-07-12 20:24:55 +02:00
|
|
|
$channelBannedRights = ['_' => 'channelBannedRights', 'view_messages' => Bool, 'send_messages' => Bool, 'send_media' => Bool, 'send_stickers' => Bool, 'send_gifs' => Bool, 'send_games' => Bool, 'send_inline' => Bool, 'embed_links' => Bool, 'until_date' => int];
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2018-10-17 17:10:50 +02:00
|
|
|
Or, if you're into Lua:
|
2018-07-12 20:24:55 +02:00
|
|
|
|
2018-10-17 17:10:50 +02:00
|
|
|
```lua
|
2018-07-12 20:24:55 +02:00
|
|
|
channelBannedRights={_='channelBannedRights', view_messages=Bool, send_messages=Bool, send_media=Bool, send_stickers=Bool, send_gifs=Bool, send_games=Bool, send_inline=Bool, embed_links=Bool, until_date=int}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|