2018-06-29 13:59:08 +02:00
|
|
|
---
|
|
|
|
title: channelParticipantAdmin
|
2018-12-26 02:56:50 +01:00
|
|
|
description: Channel participant admin
|
2018-06-29 13:59:08 +02:00
|
|
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
|
|
|
---
|
|
|
|
# Constructor: channelParticipantAdmin
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-12-26 02:56:50 +01:00
|
|
|
Channel participant admin
|
|
|
|
|
2018-06-29 13:59:08 +02:00
|
|
|
### Attributes:
|
|
|
|
|
2018-12-26 02:56:50 +01:00
|
|
|
| Name | Type | Required | Description |
|
|
|
|
|----------|---------------|----------|-------------|
|
|
|
|
|can\_edit|[Bool](../types/Bool.md) | Optional|Can edit?|
|
|
|
|
|user\_id|[int](../types/int.md) | Yes|User ID|
|
|
|
|
|inviter\_id|[int](../types/int.md) | Yes|Inviter ID|
|
|
|
|
|promoted\_by|[int](../types/int.md) | Yes|Promoted by|
|
|
|
|
|date|[int](../types/int.md) | Yes|Date|
|
|
|
|
|admin\_rights|[ChannelAdminRights](../types/ChannelAdminRights.md) | Yes|Admin rights|
|
2018-06-29 13:59:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [ChannelParticipant](../types/ChannelParticipant.md)
|
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
2018-10-17 17:10:50 +02:00
|
|
|
```php
|
2018-06-29 13:59:08 +02:00
|
|
|
$channelParticipantAdmin = ['_' => 'channelParticipantAdmin', 'can_edit' => Bool, 'user_id' => int, 'inviter_id' => int, 'promoted_by' => int, 'date' => int, 'admin_rights' => ChannelAdminRights];
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2018-10-17 17:10:50 +02:00
|
|
|
Or, if you're into Lua:
|
2018-06-29 13:59:08 +02:00
|
|
|
|
2018-10-17 17:10:50 +02:00
|
|
|
```lua
|
2018-06-29 13:59:08 +02:00
|
|
|
channelParticipantAdmin={_='channelParticipantAdmin', can_edit=Bool, user_id=int, inviter_id=int, promoted_by=int, date=int, admin_rights=ChannelAdminRights}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|