Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/grm/src/mod.ts>Api.Channel

MTProto API Client for Deno 🦕
Go to Latest
class Api.Channel
extends VirtualClass<{ creator?: boolean; left?: boolean; broadcast?: boolean; verified?: boolean; megagroup?: boolean; restricted?: boolean; signatures?: boolean; min?: boolean; scam?: boolean; hasLink?: boolean; hasGeo?: boolean; slowmodeEnabled?: boolean; callActive?: boolean; callNotEmpty?: boolean; fake?: boolean; gigagroup?: boolean; noforwards?: boolean; joinToSend?: boolean; joinRequest?: boolean; forum?: boolean; id: long; accessHash?: long; title: string; username?: string; photo: Api.TypeChatPhoto; date: int; restrictionReason?: Api.TypeRestrictionReason[]; adminRights?: Api.TypeChatAdminRights; bannedRights?: Api.TypeChatBannedRights; defaultBannedRights?: Api.TypeChatBannedRights; participantsCount?: int; usernames?: Api.TypeUsername[]; }>
import { Api } from "https://deno.land/x/grm@0.8.0/src/mod.ts";
const { Channel } = Api;

Properties

optional
accessHash: long
optional
adminRights: Api.TypeChatAdminRights
optional
bannedRights: Api.TypeChatBannedRights
optional
broadcast: boolean
optional
callActive: boolean
optional
callNotEmpty: boolean
className: "Channel"
classType: "constructor"
CONSTRUCTOR_ID: 2200278116
optional
creator: boolean
date: int
optional
defaultBannedRights: Api.TypeChatBannedRights
optional
fake: boolean
optional
forum: boolean
optional
gigagroup: boolean
optional
hasGeo: boolean
id: long
optional
joinRequest: boolean
optional
joinToSend: boolean
optional
left: boolean
optional
megagroup: boolean
optional
min: boolean
optional
noforwards: boolean
optional
participantsCount: int
photo: Api.TypeChatPhoto
optional
restricted: boolean
optional
restrictionReason: Api.TypeRestrictionReason[]
optional
scam: boolean
optional
signatures: boolean
optional
slowmodeEnabled: boolean
SUBCLASS_OF_ID: 3316604308
title: string
optional
username: string
optional
usernames: Api.TypeUsername[]
optional
verified: boolean

Static Methods

fromReader(reader: Reader): Channel