MadelineProtoDocs/docs/API_docs/constructors/channelParticipantAdmin.md

46 lines
1.4 KiB
Markdown
Raw Normal View History

2018-04-01 13:19:25 +02:00
---
title: channelParticipantAdmin
2018-12-26 02:56:50 +01:00
description: Channel participant admin
2018-04-04 19:52:48 +02:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
2018-04-01 13:19:25 +02:00
---
2018-04-05 01:19:57 +02:00
# Constructor: channelParticipantAdmin
2018-04-01 13:19:25 +02:00
[Back to constructors index](index.md)
2018-12-26 02:56:50 +01:00
Channel participant admin
2018-04-01 13:19:25 +02:00
### Attributes:
2018-12-26 02:56:50 +01:00
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|can\_edit|[Bool](../types/Bool.md) | Optional|Can edit?|
2019-03-08 14:35:09 +01:00
|self|[Bool](../types/Bool.md) | Optional|Is this the current user?|
2018-12-26 02:56:50 +01:00
|user\_id|[int](../types/int.md) | Yes|User ID|
2019-03-08 13:49:23 +01:00
|inviter\_id|[int](../types/int.md) | Optional|Inviter ID|
2018-12-26 02:56:50 +01:00
|promoted\_by|[int](../types/int.md) | Yes|Promoted by|
|date|[int](../types/int.md) | Yes|Date|
2019-03-08 14:35:09 +01:00
|admin\_rights|[ChatAdminRights](../types/ChatAdminRights.md) | Yes|Admin rights|
2019-08-15 20:25:16 +02:00
|rank|[string](../types/string.md) | Optional||
2018-04-01 13:19:25 +02:00
### Type: [ChannelParticipant](../types/ChannelParticipant.md)
### Example:
```php
2019-08-15 20:25:16 +02:00
$channelParticipantAdmin = ['_' => 'channelParticipantAdmin', 'can_edit' => Bool, 'self' => Bool, 'user_id' => int, 'inviter_id' => int, 'promoted_by' => int, 'date' => int, 'admin_rights' => ChatAdminRights, 'rank' => 'string'];
2018-04-01 13:19:25 +02:00
```
Or, if you're into Lua:
2018-04-01 13:19:25 +02:00
```lua
2019-08-15 20:25:16 +02:00
channelParticipantAdmin={_='channelParticipantAdmin', can_edit=Bool, self=Bool, user_id=int, inviter_id=int, promoted_by=int, date=int, admin_rights=ChatAdminRights, rank='string'}
2018-04-01 13:19:25 +02:00
```