Skip to main content

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.

type tg.ChatBannedRights struct { /* ... */ }

Fields

NameTypeRequiredDescription
ViewMessagesboolIf set, does not allow a user to view messages in a supergroup/channel/chat
SendMessagesboolIf set, does not allow a user to send messages in a supergroup/chat
SendMediaboolIf set, does not allow a user to send any media in a supergroup/chat
SendStickersboolIf set, does not allow a user to send stickers in a supergroup/chat
SendGifsboolIf set, does not allow a user to send gifs in a supergroup/chat
SendGamesboolIf set, does not allow a user to send games in a supergroup/chat
SendInlineboolIf set, does not allow a user to use inline bots in a supergroup/chat.
EmbedLinksboolIf set, does not allow a user to embed links in the messages of a supergroup/chat
SendPollsboolIf set, does not allow a user to send polls in a supergroup/chat
ChangeInfoboolIf set, does not allow a user to change the description of a supergroup/chat
InviteUsersboolIf set, does not allow a user to invite users in a supergroup/chat
PinMessagesboolIf set, does not allow a user to pin messages in a supergroup/chat
ManageTopicsboolIf set, does not allow a user to create, delete or modify forum topics ».
SendPhotosboolIf set, does not allow a user to send photos in a supergroup/chat.
SendVideosboolIf set, does not allow a user to send videos in a supergroup/chat.
SendRoundvideosboolIf set, does not allow a user to send round videos in a supergroup/chat.
SendAudiosboolIf set, does not allow a user to send audio files in a supergroup/chat.
SendVoicesboolIf set, does not allow a user to send voice messages in a supergroup/chat.
SendDocsboolIf set, does not allow a user to send documents in a supergroup/chat.
SendPlainboolIf set, does not allow a user to send text messages in a supergroup/chat.
EditRankboolEditRank field of ChatBannedRights.
SendReactionsboolSendReactions field of ChatBannedRights.
UntilDateintyesValidity of said permissions (it is considered forever any value less then 30 seconds or more then 366 days).

References