--- title: channel description: Channel image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Constructor: channel [Back to constructors index](index.md) Channel ### Attributes: | Name | Type | Required | Description | |----------|---------------|----------|-------------| |id|[int](../types/int.md) | Yes|ID| |access\_hash|[long](../types/long.md) | Yes|Access hash| |title|[string](../types/string.md) | Yes|Title| |photo|[ChatPhoto](../types/ChatPhoto.md) | Optional|Photo| |date|[int](../types/int.md) | Yes|Date| |version|[int](../types/int.md) | Yes|Version| ### Type: [Chat](../types/Chat.md) ### Example: ```php $channel = ['_' => 'channel', 'id' => int, 'access_hash' => long, 'title' => 'string', 'photo' => ChatPhoto, 'date' => int, 'version' => int]; ``` Or, if you're into Lua: ```lua channel={_='channel', id=int, access_hash=long, title='string', photo=ChatPhoto, date=int, version=int} ```