MadelineProtoDocs/old_docs/API_docs_v91/constructors/peerChannel.md

39 lines
605 B
Markdown
Raw Normal View History

2019-03-08 13:49:23 +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}
```