MadelineProtoDocs/old_docs/API_docs_v40/constructors/channel.md
Daniil Gentili f73c175203 Update docs
2018-12-26 01:56:50 +00:00

1.1 KiB

title description image
channel Channel https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: channel

Back to constructors index

Channel

Attributes:

Name Type Required Description
id int Yes ID
access_hash long Yes Access hash
title string Yes Title
photo ChatPhoto Optional Photo
date int Yes Date
version int Yes Version

Type: Chat

Example:

$channel = ['_' => 'channel', 'id' => int, 'access_hash' => long, 'title' => 'string', 'photo' => ChatPhoto, 'date' => int, 'version' => int];

PWRTelegram json-encoded version:

{"_": "channel", "id": int, "access_hash": long, "title": "string", "photo": ChatPhoto, "date": int, "version": int}

Or, if you're into Lua:

channel={_='channel', id=int, access_hash=long, title='string', photo=ChatPhoto, date=int, version=int}