MadelineProtoDocs/old_docs/API_docs_v104/constructors/chatBannedRights.md
2019-08-15 20:25:16 +02:00

2.1 KiB

title description image
chatBannedRights Banned rights (when true, the user will NOT be able to do that thing) https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: chatBannedRights

Back to constructors index

Banned rights (when true, the user will NOT be able to do that thing)

Attributes:

Name Type Required Description
view_messages Bool Optional Can view messages?
send_messages Bool Optional Can send messages?
send_media Bool Optional Can send media?
send_stickers Bool Optional Can send stickers?
send_gifs Bool Optional Can send gifs?
send_games Bool Optional Can send games?
send_inline Bool Optional Can use inline bots?
embed_links Bool Optional Can embed links?
send_polls Bool Optional Can send polls?
change_info Bool Optional Can change info?
invite_users Bool Optional Can invite users?
pin_messages Bool Optional Can pin messages?
until_date int Yes Until date (0 = forever)

Type: ChatBannedRights

Example:

$chatBannedRights = ['_' => 'chatBannedRights', 'view_messages' => Bool, 'send_messages' => Bool, 'send_media' => Bool, 'send_stickers' => Bool, 'send_gifs' => Bool, 'send_games' => Bool, 'send_inline' => Bool, 'embed_links' => Bool, 'send_polls' => Bool, 'change_info' => Bool, 'invite_users' => Bool, 'pin_messages' => Bool, 'until_date' => int];

Or, if you're into Lua:

chatBannedRights={_='chatBannedRights', view_messages=Bool, send_messages=Bool, send_media=Bool, send_stickers=Bool, send_gifs=Bool, send_games=Bool, send_inline=Bool, embed_links=Bool, send_polls=Bool, change_info=Bool, invite_users=Bool, pin_messages=Bool, until_date=int}