Constructor: channelParticipantAdmin
Admin
Attributes:
| Name | Type | Required | Description |
|---|---|---|---|
| can_edit | Bool | Optional | Can this admin promote other admins with the same permissions? |
| self | Bool | Optional | Is this the current user |
| user_id | long | Yes | Admin user ID |
| inviter_id | long | Optional | User that invited the admin to the channel/group |
| promoted_by | long | Yes | User that promoted the user to admin |
| date | int | Yes | When did the user join |
| admin_rights | ChatAdminRights | Yes | Admin rights |
| rank | string | Optional | The role (rank) of the admin in the group: just an arbitrary string, admin by default |
Type: ChannelParticipant
Example:
$channelParticipantAdmin = ['_' => 'channelParticipantAdmin', 'can_edit' => Bool, 'self' => Bool, 'user_id' => long, 'inviter_id' => long, 'promoted_by' => long, 'date' => int, 'admin_rights' => ChatAdminRights, 'rank' => 'string'];