MadelineProtoDocs/old_docs/API_docs_v82/constructors/peerChannel.md

39 lines
605 B
Markdown
Raw Normal View History

2018-12-26 02:56:50 +01:00
---
title: peerChannel
description: Peer channel
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: peerChannel
[Back to constructors index](index.md)
Peer channel
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|channel\_id|[int](../types/int.md) | Yes|Channel ID|
### Type: [Peer](../types/Peer.md)
### Example:
```php
$peerChannel = ['_' => 'peerChannel', 'channel_id' => int];
```
Or, if you're into Lua:
```lua
peerChannel={_='peerChannel', channel_id=int}
```