Layer 220
ChatAdminRights
Represents the rights of an admin in a channel/supergroup.
constructor
chatAdminRights#5fb224d5 flags:# change_info:flags.0?true post_messages:flags.1?true edit_messages:flags.2?true delete_messages:flags.3?true ban_users:flags.4?true invite_users:flags.5?true pin_messages:flags.7?true add_admins:flags.9?true anonymous:flags.10?true manage_call:flags.11?true other:flags.12?true manage_topics:flags.13?true post_stories:flags.14?true edit_stories:flags.15?true delete_stories:flags.16?true manage_direct_messages:flags.17?true = ChatAdminRights;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| ChangeInfo | flags.0?true | If set, allows the admin to modify the description of the channel/supergroup |
| PostMessages | flags.1?true | If set, allows the admin to post messages in the channel |
| EditMessages | flags.2?true | If set, allows the admin to also edit messages from other admins in the channel |
| DeleteMessages | flags.3?true | If set, allows the admin to also delete messages from other admins in the channel |
| BanUsers | flags.4?true | If set, allows the admin to ban users from the channel/supergroup |
| InviteUsers | flags.5?true | If set, allows the admin to invite users in the channel/supergroup |
| PinMessages | flags.7?true | If set, allows the admin to pin messages in the channel/supergroup |
| AddAdmins | flags.9?true | If set, allows the admin to add other admins with the same (or more limited) permissions in the channel/supergroup |
| Anonymous | flags.10?true | Whether this admin is anonymous |
| ManageCall | flags.11?true | If set, allows the admin to change group call/livestream settings |
| Other | flags.12?true | Set this flag if none of the other flags are set, but you still want the user to be an admin: if this or any of the other flags are set, the admin can get the chat admin log, get chat statistics, get message statistics in channels, get channel members, see anonymous administrators in supergroups and ignore slow mode. |
| ManageTopics | flags.13?true | If set, allows the admin to create, delete or modify forum topics. |
| PostStories | flags.14?true | If set, allows the admin to post stories as the channel. |
| EditStories | flags.15?true | If set, allows the admin to edit stories posted by the other admins of the channel. |
| DeleteStories | flags.16?true | If set, allows the admin to delete stories posted by the other admins of the channel. |
| ManageDirectMessages | flags.17?true | If set, allows the admin to manage the direct messages monoforum and decline suggested posts. |
Returns
ChatAdminRightsGogram Example
// Creating ChatAdminRights constructor obj := &tg.ChatAdminRights{ // Optional fields: // ChangeInfo: true, // PostMessages: true, // EditMessages: true, // DeleteMessages: true, // ... more optional fields }