MadelineProtoDocs/old_docs/API_docs_v70/constructors/channelBannedRights.md

47 lines
1.7 KiB
Markdown
Raw Normal View History

2018-04-01 13:19:25 +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-04-04 19:52:48 +02:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
2018-04-01 13:19:25 +02:00
---
2018-04-05 01:19:57 +02:00
# Constructor: channelBannedRights
2018-04-01 13:19:25 +02:00
[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-04-01 13:19:25 +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|
|send\_messages|[Bool](../types/Bool.md) | Optional|Disallow sending messages|
|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-04-01 13:19:25 +02:00
### Type: [ChannelBannedRights](../types/ChannelBannedRights.md)
### Example:
```php
2018-04-01 13:19:25 +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];
```
Or, if you're into Lua:
2018-04-01 13:19:25 +02:00
```lua
2018-04-01 13:19:25 +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}
```