MadelineProtoDocs/old_docs/API_docs_v75/constructors/channelBannedRights.md
Sean 4baac3178e Add Syntax Highlight for Markdown
Add PHP, Lua language tag to Code area
2018-10-18 00:30:20 +08:00

1.7 KiB

title description image
channelBannedRights channelBannedRights attributes, type and example https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: channelBannedRights

Back to constructors index

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}