Skip to main content

chatAdminRights

Represents the rights of an admin in a channel/supergroup.

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

Fields

NameTypeRequiredDescription
ChangeInfoboolIf set, allows the admin to modify the description of the channel/supergroup
PostMessagesboolIf set, allows the admin to post messages in the channel
EditMessagesboolIf set, allows the admin to also edit messages from other admins in the channel
DeleteMessagesboolIf set, allows the admin to also delete messages from other admins in the channel
BanUsersboolIf set, allows the admin to ban users from the channel/supergroup
InviteUsersboolIf set, allows the admin to invite users in the channel/supergroup
PinMessagesboolIf set, allows the admin to pin messages in the channel/supergroup
AddAdminsboolIf set, allows the admin to add other admins with the same (or more limited) permissions in the channel/supergroup
AnonymousboolWhether this admin is anonymous
ManageCallboolIf set, allows the admin to change group call/livestream settings
OtherboolSet 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.
ManageTopicsboolIf set, allows the admin to create, delete or modify forum topics ».
PostStoriesboolIf set, allows the admin to post stories as the channel.
EditStoriesboolIf set, allows the admin to edit stories posted by the other admins of the channel.
DeleteStoriesboolIf set, allows the admin to delete stories posted by the other admins of the channel.
ManageDirectMessagesboolIf set, allows the admin to manage the direct messages monoforum » and decline suggested posts ».
ManageRanksboolManageRanks field of ChatAdminRights.

References