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
ViewMessagesbool—If set, does not allow a user to view messages in a supergroup/channel/chat
SendMessagesbool—If set, does not allow a user to send messages in a supergroup/chat
SendMediabool—If set, does not allow a user to send any media in a supergroup/chat
SendStickersbool—If set, does not allow a user to send stickers in a supergroup/chat
SendGifsbool—If set, does not allow a user to send gifs in a supergroup/chat
SendGamesbool—If set, does not allow a user to send games in a supergroup/chat
SendInlinebool—If set, does not allow a user to use inline bots in a supergroup/chat.
EmbedLinksbool—If set, does not allow a user to embed links in the messages of a supergroup/chat
SendPollsbool—If set, does not allow a user to send polls in a supergroup/chat
ChangeInfobool—If set, does not allow a user to change the description of a supergroup/chat
InviteUsersbool—If set, does not allow a user to invite users in a supergroup/chat
PinMessagesbool—If set, does not allow a user to pin messages in a supergroup/chat
ManageTopicsbool—If set, does not allow a user to create, delete or modify forum topics ».
SendPhotosbool—If set, does not allow a user to send photos in a supergroup/chat.
SendVideosbool—If set, does not allow a user to send videos in a supergroup/chat.
SendRoundvideosbool—If set, does not allow a user to send round videos in a supergroup/chat.
SendAudiosbool—If set, does not allow a user to send audio files in a supergroup/chat.
SendVoicesbool—If set, does not allow a user to send voice messages in a supergroup/chat.
SendDocsbool—If set, does not allow a user to send documents in a supergroup/chat.
SendPlainbool—If set, does not allow a user to send text messages in a supergroup/chat.
EditRankbool—EditRank field of ChatBannedRights.
SendReactionsbool—SendReactions field of ChatBannedRights.
UntilDateintyesValidity of said permissions (it is considered forever any value less then 30 seconds or more then 366 days).

References​