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

nametypedescription
flags#Flags, see TL conditional fields
view_messagesflags.0?trueIf set, does not allow a user to view messages in a supergroup/channel/chat
send_messagesflags.1?trueIf set, does not allow a user to send messages in a supergroup/chat
send_mediaflags.2?trueIf set, does not allow a user to send any media in a supergroup/chat
send_stickersflags.3?trueIf set, does not allow a user to send stickers in a supergroup/chat
send_gifsflags.4?trueIf set, does not allow a user to send gifs in a supergroup/chat
send_gamesflags.5?trueIf set, does not allow a user to send games in a supergroup/chat
send_inlineflags.6?trueIf set, does not allow a user to use inline bots in a supergroup/chat.
embed_linksflags.7?trueIf set, does not allow a user to embed links in the messages of a supergroup/chat
send_pollsflags.8?trueIf set, does not allow a user to send polls in a supergroup/chat
change_infoflags.10?trueIf set, does not allow any user to change the description of a supergroup/chat
invite_usersflags.15?trueIf set, does not allow any user to invite users in a supergroup/chat
pin_messagesflags.17?trueIf set, does not allow any user to pin messages in a supergroup/chat
manage_topicsflags.18?trueIf set, does not allow any user to create, delete or modify forum topics ».
send_photosflags.19?trueIf set, does not allow a user to send photos in a supergroup/chat.
send_videosflags.20?trueIf set, does not allow a user to send videos in a supergroup/chat.
send_roundvideosflags.21?trueIf set, does not allow a user to send round videos in a supergroup/chat.
send_audiosflags.22?trueIf set, does not allow a user to send audio files in a supergroup/chat.
send_voicesflags.23?trueIf set, does not allow a user to send voice messages in a supergroup/chat.
send_docsflags.24?trueIf set, does not allow a user to send documents in a supergroup/chat.
send_plainflags.25?trueIf set, does not allow a user to send text messages in a supergroup/chat.
edit_rankflags.26?true
send_reactionsflags.27?true
manage_linked_peersflags.28?true
until_dateintValidity of said permissions (it is considered forever any value less then 30 seconds or more then 366 days).

type

ChatBannedRights

history

present in layers 93–229

idlayers
#9f12041893–229