4baac3178e
Add PHP, Lua language tag to Code area
44 lines
1.0 KiB
Markdown
44 lines
1.0 KiB
Markdown
---
|
|
title: channels.channelParticipant
|
|
description: channels_channelParticipant attributes, type and example
|
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
|
---
|
|
# Constructor: channels.channelParticipant
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
| Name | Type | Required |
|
|
|----------|---------------|----------|
|
|
|participant|[ChannelParticipant](../types/ChannelParticipant.md) | Yes|
|
|
|users|Array of [User](../types/User.md) | Yes|
|
|
|
|
|
|
|
|
### Type: [channels\_ChannelParticipant](../types/channels_ChannelParticipant.md)
|
|
|
|
|
|
### Example:
|
|
|
|
```php
|
|
$channels_channelParticipant = ['_' => 'channels.channelParticipant', 'participant' => ChannelParticipant, 'users' => [User, User]];
|
|
```
|
|
|
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
|
|
|
```
|
|
{"_": "channels.channelParticipant", "participant": ChannelParticipant, "users": [User]}
|
|
```
|
|
|
|
|
|
Or, if you're into Lua:
|
|
|
|
```lua
|
|
channels_channelParticipant={_='channels.channelParticipant', participant=ChannelParticipant, users={User}}
|
|
|
|
```
|
|
|
|
|