1.7 KiB
1.7 KiB
title | description | image |
---|---|---|
channelBannedRights | Banned user rights (when true, the user will NOT be able to do that thing) | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |
Constructor: channelBannedRights
Banned user rights (when true, the user will NOT be able to do that thing)
Attributes:
Name | Type | Required | Description |
---|---|---|---|
view_messages | Bool | Optional | Disallow viewing messages |
send_messages | Bool | Optional | |
send_media | Bool | Optional | Disallow sending media |
send_stickers | Bool | Optional | Disallow sending stickers |
send_gifs | Bool | Optional | Disallow sending gifs |
send_games | Bool | Optional | Disallow sending games |
send_inline | Bool | Optional | Disallow sending inline keyboards |
embed_links | Bool | Optional | Disallow embedding links |
until_date | int | Yes | Until date |
Type: ChannelBannedRights
Example:
$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:
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}