telegram api constructor · layer 229 · #9f120418
chatBannedRights
Represents the rights of a normal user in a supergroup/channel/chat. In this case, the flags are inverted: if set, a flag does not allow a user to do X.
definition
chatBannedRights#9f120418 flags:# view_messages:flags.0?true send_messages:flags.1?true send_media:flags.2?true send_stickers:flags.3?true send_gifs:flags.4?true send_games:flags.5?true send_inline:flags.6?true embed_links:flags.7?true send_polls:flags.8?true change_info:flags.10?true invite_users:flags.15?true pin_messages:flags.17?true manage_topics:flags.18?true send_photos:flags.19?true send_videos:flags.20?true send_roundvideos:flags.21?true send_audios:flags.22?true send_voices:flags.23?true send_docs:flags.24?true send_plain:flags.25?true edit_rank:flags.26?true send_reactions:flags.27?true manage_linked_peers:flags.28?true until_date:int = ChatBannedRights;
parameters
| name | type | description |
|---|---|---|
flags | # | Flags, see TL conditional fields |
view_messages | true | If set, does not allow a user to view messages in a supergroup/channel/chat |
send_messages | true | If set, does not allow a user to send messages in a supergroup/chat |
send_media | true | If set, does not allow a user to send any media in a supergroup/chat |
send_stickers | true | If set, does not allow a user to send stickers in a supergroup/chat |
send_gifs | true | If set, does not allow a user to send gifs in a supergroup/chat |
send_games | true | If set, does not allow a user to send games in a supergroup/chat |
send_inline | true | If set, does not allow a user to use inline bots in a supergroup/chat. |
embed_links | true | If set, does not allow a user to embed links in the messages of a supergroup/chat |
send_polls | true | If set, does not allow a user to send polls in a supergroup/chat |
change_info | true | If set, does not allow any user to change the description of a supergroup/chat |
invite_users | true | If set, does not allow any user to invite users in a supergroup/chat |
pin_messages | true | If set, does not allow any user to pin messages in a supergroup/chat |
manage_topics | true | If set, does not allow any user to create, delete or modify forum topics ». |
send_photos | true | If set, does not allow a user to send photos in a supergroup/chat. |
send_videos | true | If set, does not allow a user to send videos in a supergroup/chat. |
send_roundvideos | true | If set, does not allow a user to send round videos in a supergroup/chat. |
send_audios | true | If set, does not allow a user to send audio files in a supergroup/chat. |
send_voices | true | If set, does not allow a user to send voice messages in a supergroup/chat. |
send_docs | true | If set, does not allow a user to send documents in a supergroup/chat. |
send_plain | true | If set, does not allow a user to send text messages in a supergroup/chat. |
edit_rank | true | |
send_reactions | true | |
manage_linked_peers | true | |
until_date | int | Validity of said permissions (it is considered forever any value less then 30 seconds or more then 366 days). |
type
history
present in layers 93–229
| id | layers |
|---|---|
| #9f120418 | 93–229 |