2.0 KiB
2.0 KiB
title | description | image |
---|---|---|
channel | Channel | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |
Constructor: channel
Channel
Attributes:
Name | Type | Required | Description |
---|---|---|---|
creator | Bool | Optional | Creator? |
kicked | Bool | Optional | Kicked? |
left | Bool | Optional | Left? |
editor | Bool | Optional | Editor? |
moderator | Bool | Optional | Moderator? |
broadcast | Bool | Optional | Broadcast? |
verified | Bool | Optional | Verified? |
megagroup | Bool | Optional | Megagroup? |
restricted | Bool | Optional | Restricted? |
id | int | Yes | ID |
access_hash | long | Yes | Access hash |
title | string | Yes | Title |
username | string | Optional | Username |
photo | ChatPhoto | Optional | Photo |
date | int | Yes | Date |
version | int | Yes | Version |
restiction_reason | string | Optional | Restiction reason |
Type: Chat
Example:
$channel = ['_' => 'channel', 'creator' => Bool, 'kicked' => Bool, 'left' => Bool, 'editor' => Bool, 'moderator' => Bool, 'broadcast' => Bool, 'verified' => Bool, 'megagroup' => Bool, 'restricted' => Bool, 'id' => int, 'access_hash' => long, 'title' => 'string', 'username' => 'string', 'photo' => ChatPhoto, 'date' => int, 'version' => int, 'restiction_reason' => 'string'];
Or, if you're into Lua:
channel={_='channel', creator=Bool, kicked=Bool, left=Bool, editor=Bool, moderator=Bool, broadcast=Bool, verified=Bool, megagroup=Bool, restricted=Bool, id=int, access_hash=long, title='string', username='string', photo=ChatPhoto, date=int, version=int, restiction_reason='string'}