mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-12 16:07:21 +01:00
1.6 KiB
1.6 KiB
title | description |
---|---|
channelBannedRights | channelBannedRights attributes, type and example |
Constructor: channelBannedRights
Attributes:
Name | Type | Required |
---|---|---|
view_messages | Bool | Optional |
send_messages | Bool | Optional |
send_media | Bool | Optional |
send_stickers | Bool | Optional |
send_gifs | Bool | Optional |
send_games | Bool | Optional |
send_inline | Bool | Optional |
embed_links | Bool | Optional |
until_date | int | Yes |
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, ];
PWRTelegram json-encoded version:
{"_":"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, }