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
| Name | Type | Required | Description |
|---|---|---|---|
ViewMessages | bool | — | If set, does not allow a user to view messages in a supergroup/channel/chat |
SendMessages | bool | — | If set, does not allow a user to send messages in a supergroup/chat |
SendMedia | bool | — | If set, does not allow a user to send any media in a supergroup/chat |
SendStickers | bool | — | If set, does not allow a user to send stickers in a supergroup/chat |
SendGifs | bool | — | If set, does not allow a user to send gifs in a supergroup/chat |
SendGames | bool | — | If set, does not allow a user to send games in a supergroup/chat |
SendInline | bool | — | If set, does not allow a user to use inline bots in a supergroup/chat. |
EmbedLinks | bool | — | If set, does not allow a user to embed links in the messages of a supergroup/chat |
SendPolls | bool | — | If set, does not allow a user to send polls in a supergroup/chat |
ChangeInfo | bool | — | If set, does not allow a user to change the description of a supergroup/chat |
InviteUsers | bool | — | If set, does not allow a user to invite users in a supergroup/chat |
PinMessages | bool | — | If set, does not allow a user to pin messages in a supergroup/chat |
ManageTopics | bool | — | If set, does not allow a user to create, delete or modify forum topics ». |
SendPhotos | bool | — | If set, does not allow a user to send photos in a supergroup/chat. |
SendVideos | bool | — | If set, does not allow a user to send videos in a supergroup/chat. |
SendRoundvideos | bool | — | If set, does not allow a user to send round videos in a supergroup/chat. |
SendAudios | bool | — | If set, does not allow a user to send audio files in a supergroup/chat. |
SendVoices | bool | — | If set, does not allow a user to send voice messages in a supergroup/chat. |
SendDocs | bool | — | If set, does not allow a user to send documents in a supergroup/chat. |
SendPlain | bool | — | If set, does not allow a user to send text messages in a supergroup/chat. |
EditRank | bool | — | EditRank field of ChatBannedRights. |
SendReactions | bool | — | SendReactions field of ChatBannedRights. |
UntilDate | int | yes | Validity of said permissions (it is considered forever any value less then 30 seconds or more then 366 days). |
References
- Official documentation
- Generated Go reference
- TL definition:
chatBannedRights#9f120418