telegram api constructor · layer 229 · #5fb224d5

chatAdminRights

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

definition

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 manage_ranks:flags.18?true manage_linked_peers:flags.19?true manage_welcome_messages:flags.20?true = ChatAdminRights;

parameters

nametypedescription
flags#Flags, see TL conditional fields
change_infoflags.0?trueIf set, allows the admin to modify the description of the channel/supergroup
post_messagesflags.1?trueIf set, allows the admin to post messages in the channel
edit_messagesflags.2?trueIf set, allows the admin to also edit messages from other admins in the channel
delete_messagesflags.3?trueIf set, allows the admin to also delete messages from other admins in the channel
ban_usersflags.4?trueIf set, allows the admin to ban users from the channel/supergroup
invite_usersflags.5?trueIf set, allows the admin to invite users in the channel/supergroup
pin_messagesflags.7?trueIf set, allows the admin to pin messages in the channel/supergroup
add_adminsflags.9?trueIf set, allows the admin to add other admins with the same (or more limited) permissions in the channel/supergroup
anonymousflags.10?trueWhether this admin is anonymous
manage_callflags.11?trueIf set, allows the admin to change group call/livestream settings
otherflags.12?trueSet 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.
manage_topicsflags.13?trueIf set, allows the admin to create, delete or modify forum topics ».
post_storiesflags.14?trueIf set, allows the admin to post stories as the channel.
edit_storiesflags.15?trueIf set, allows the admin to edit stories posted by the other admins of the channel.
delete_storiesflags.16?trueIf set, allows the admin to delete stories posted by the other admins of the channel.
manage_direct_messagesflags.17?trueIf set, allows the admin to manage the direct messages monoforum » and decline suggested posts ».
manage_ranksflags.18?true
manage_linked_peersflags.19?true
manage_welcome_messagesflags.20?true

type

ChatAdminRights

history

present in layers 93–229

idlayers
#5fb224d593–229