Admin
Constructor schema is available as of layer 93. Switch ยป
Name | Type | Description |
---|---|---|
flags | # | Flags, see TL conditional fields |
can_edit | flags.0?true | Can this admin promote other admins with the same permissions? |
self | flags.1?true | Is this the current user |
user_id | long | Admin user ID |
inviter_id | flags.1?long | User that invited the admin to the channel/group |
promoted_by | long | User that promoted the user to admin |
date | int | When did the user join |
admin_rights | ChatAdminRights | Admin rights |
rank | flags.2?string | The role (rank) of the admin in the group: just an arbitrary string, admin by default |
How to handle admin permissions, granular bans and global permissions in channels, groups and supergroups.