channelParticipantAdmin #

Admin

Layer 223

channelParticipantAdmin#34c3bb53 flags:# can_edit:flags.0?true self:flags.1?true user_id:long inviter_id:flags.1?long promoted_by:long date:int admin_rights:ChatAdminRights rank:flags.2?string = ChannelParticipant;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
can_editflags.0?trueCan this admin promote other admins with the same permissions?
selfflags.1?trueIs this the current user
user_idlongAdmin user ID
inviter_idflags.1?longUser that invited the admin to the channel/group
promoted_bylongUser that promoted the user to admin
dateintWhen did the user join
admin_rightsChatAdminRightsAdmin rights
rankflags.2?stringThe participant's tag », defaults to "Admin" if not set.

Type #

ChannelParticipant

Admin, banned, default rights #

How to handle admin permissions, granular bans and global permissions in channels, groups and supergroups.

Group participant tags #

Members in group chats (both basic groups and supergroups) can add a tag next to their name — to show their role at work, what they study in school, and more.