Layer 227
constructor
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 until_date:int = ChatBannedRights;

Parameters

Name Type Description
ViewMessages flags .0? true If set, does not allow a user to view messages in a supergroup/channel/chat
SendMessages flags .1? true If set, does not allow a user to send messages in a supergroup/chat
SendMedia flags .2? true If set, does not allow a user to send any media in a supergroup/chat
SendStickers flags .3? true If set, does not allow a user to send stickers in a supergroup/chat
SendGifs flags .4? true If set, does not allow a user to send gifs in a supergroup/chat
SendGames flags .5? true If set, does not allow a user to send games in a supergroup/chat
SendInline flags .6? true If set, does not allow a user to use inline bots in a supergroup/chat.
EmbedLinks flags .7? true If set, does not allow a user to embed links in the messages of a supergroup/chat
SendPolls flags .8? true If set, does not allow a user to send polls in a supergroup/chat
ChangeInfo flags .10? true If set, does not allow a user to change the description of a supergroup/chat
InviteUsers flags .15? true If set, does not allow a user to invite users in a supergroup/chat
PinMessages flags .17? true If set, does not allow a user to pin messages in a supergroup/chat
ManageTopics flags .18? true If set, does not allow a user to create, delete or modify forum topics.
SendPhotos flags .19? true If set, does not allow a user to send photos in a supergroup/chat.
SendVideos flags .20? true If set, does not allow a user to send videos in a supergroup/chat.
SendRoundvideos flags .21? true If set, does not allow a user to send round videos in a supergroup/chat.
SendAudios flags .22? true If set, does not allow a user to send audio files in a supergroup/chat.
SendVoices flags .23? true If set, does not allow a user to send voice messages in a supergroup/chat.
SendDocs flags .24? true If set, does not allow a user to send documents in a supergroup/chat.
SendPlain flags .25? true If set, does not allow a user to send text messages in a supergroup/chat.
EditRank flags .26? true If set, does not allow a user to edit their own custom tag (rank) in a supergroup/chat.
SendReactions flags .27? true If set, does not allow a user to react to messages in a chat.
UntilDate int Validity of said permissions (it is considered forever any value less then 30 seconds or more then 366 days).

Gogram Example

// Creating ChatBannedRightsObj constructor
obj := &tg.ChatBannedRightsObj{
    ViewMessages: nil,
    SendMessages: nil,
    SendMedia: nil,
    SendStickers: nil,
    SendGifs: nil,
    SendGames: nil,
    // ... more required fields
}