MadelineProtoDocs/old_docs/API_docs_v13/constructors/peerChannel.md

39 lines
617 B
Markdown

---
title: peerChannel
description: Channel/supergroup
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: peerChannel
[Back to constructors index](index.md)
Channel/supergroup
### 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}
```