MadelineProtoDocs/old_docs/API_docs_v81/constructors/channelParticipantAdmin.md

44 lines
1.2 KiB
Markdown
Raw Normal View History

2018-07-12 20:24:55 +02:00
---
title: channelParticipantAdmin
2018-12-26 02:56:50 +01:00
description: Channel participant admin
2018-07-12 20:24:55 +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-07-12 20:24:55 +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-07-12 20:24:55 +02:00
### Type: [ChannelParticipant](../types/ChannelParticipant.md)
### Example:
```php
2018-07-12 20:24:55 +02:00
$channelParticipantAdmin = ['_' => 'channelParticipantAdmin', 'can_edit' => Bool, 'user_id' => int, 'inviter_id' => int, 'promoted_by' => int, 'date' => int, 'admin_rights' => ChannelAdminRights];
```
Or, if you're into Lua:
2018-07-12 20:24:55 +02:00
```lua
2018-07-12 20:24:55 +02:00
channelParticipantAdmin={_='channelParticipantAdmin', can_edit=Bool, user_id=int, inviter_id=int, promoted_by=int, date=int, admin_rights=ChannelAdminRights}
```