Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Channel

Hierarchy

  • 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; storiesHidden?: boolean; storiesHiddenMin?: boolean; storiesUnavailable?: boolean; id: long; accessHash?: long; title: string; username?: string; photo: TypeChatPhoto; date: int; restrictionReason?: TypeRestrictionReason[]; adminRights?: TypeChatAdminRights; bannedRights?: TypeChatBannedRights; defaultBannedRights?: TypeChatBannedRights; participantsCount?: int; usernames?: TypeUsername[]; storiesMaxId?: int; color?: TypePeerColor; profileColor?: TypePeerColor; emojiStatus?: TypeEmojiStatus; level?: int }>
    • Channel

Index

Properties

CONSTRUCTOR_ID: number
SUBCLASS_OF_ID: number
className: string
classType: "constructor" | "request"
originalArgs: { 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; storiesHidden?: boolean; storiesHiddenMin?: boolean; storiesUnavailable?: boolean; id: BigInteger; accessHash?: BigInteger; title: string; username?: string; photo: TypeChatPhoto; date: number; restrictionReason?: RestrictionReason[]; adminRights?: ChatAdminRights; bannedRights?: ChatBannedRights; defaultBannedRights?: ChatBannedRights; participantsCount?: number; usernames?: Api.Username[]; storiesMaxId?: number; color?: PeerColor; profileColor?: PeerColor; emojiStatus?: TypeEmojiStatus; level?: number }

Type declaration

  • Optional creator?: boolean
  • Optional left?: boolean
  • Optional broadcast?: boolean
  • Optional verified?: boolean
  • Optional megagroup?: boolean
  • Optional restricted?: boolean
  • Optional signatures?: boolean
  • Optional min?: boolean
  • Optional scam?: boolean
  • Optional hasLink?: boolean
  • Optional hasGeo?: boolean
  • Optional slowmodeEnabled?: boolean
  • Optional callActive?: boolean
  • Optional callNotEmpty?: boolean
  • Optional fake?: boolean
  • Optional gigagroup?: boolean
  • Optional noforwards?: boolean
  • Optional joinToSend?: boolean
  • Optional joinRequest?: boolean
  • Optional forum?: boolean
  • Optional storiesHidden?: boolean
  • Optional storiesHiddenMin?: boolean
  • Optional storiesUnavailable?: boolean
  • id: BigInteger
  • Optional accessHash?: BigInteger
  • title: string
  • Optional username?: string
  • photo: TypeChatPhoto
  • date: number
  • Optional restrictionReason?: RestrictionReason[]
  • Optional adminRights?: ChatAdminRights
  • Optional bannedRights?: ChatBannedRights
  • Optional defaultBannedRights?: ChatBannedRights
  • Optional participantsCount?: number
  • Optional usernames?: Api.Username[]
  • Optional storiesMaxId?: number
  • Optional color?: PeerColor
  • Optional profileColor?: PeerColor
  • Optional emojiStatus?: TypeEmojiStatus
  • Optional level?: number
CONSTRUCTOR_ID: 179174543
SUBCLASS_OF_ID: 3316604308
classType: "constructor"
className: "Channel"
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
storiesHidden?: boolean
storiesHiddenMin?: boolean
storiesUnavailable?: boolean
id: BigInteger
accessHash?: BigInteger
title: string
username?: string
date: number
restrictionReason?: RestrictionReason[]
adminRights?: ChatAdminRights
bannedRights?: ChatBannedRights
defaultBannedRights?: ChatBannedRights
participantsCount?: number
usernames?: Api.Username[]
storiesMaxId?: number
color?: PeerColor
profileColor?: PeerColor
emojiStatus?: TypeEmojiStatus
level?: number

Methods

  • serializeBytes(data: string | Buffer): Buffer
  • serializeDate(date: number | Date): Buffer
  • getBytes(): Buffer
  • toJSON(): { 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; storiesHidden?: boolean; storiesHiddenMin?: boolean; storiesUnavailable?: boolean; id: BigInteger; accessHash?: BigInteger; title: string; username?: string; photo: TypeChatPhoto; date: number; restrictionReason?: RestrictionReason[]; adminRights?: ChatAdminRights; bannedRights?: ChatBannedRights; defaultBannedRights?: ChatBannedRights; participantsCount?: number; usernames?: Api.Username[]; storiesMaxId?: number; color?: PeerColor; profileColor?: PeerColor; emojiStatus?: TypeEmojiStatus; level?: number }
  • Returns { 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; storiesHidden?: boolean; storiesHiddenMin?: boolean; storiesUnavailable?: boolean; id: BigInteger; accessHash?: BigInteger; title: string; username?: string; photo: TypeChatPhoto; date: number; restrictionReason?: RestrictionReason[]; adminRights?: ChatAdminRights; bannedRights?: ChatBannedRights; defaultBannedRights?: ChatBannedRights; participantsCount?: number; usernames?: Api.Username[]; storiesMaxId?: number; color?: PeerColor; profileColor?: PeerColor; emojiStatus?: TypeEmojiStatus; level?: number }

    • Optional creator?: boolean
    • Optional left?: boolean
    • Optional broadcast?: boolean
    • Optional verified?: boolean
    • Optional megagroup?: boolean
    • Optional restricted?: boolean
    • Optional signatures?: boolean
    • Optional min?: boolean
    • Optional scam?: boolean
    • Optional hasLink?: boolean
    • Optional hasGeo?: boolean
    • Optional slowmodeEnabled?: boolean
    • Optional callActive?: boolean
    • Optional callNotEmpty?: boolean
    • Optional fake?: boolean
    • Optional gigagroup?: boolean
    • Optional noforwards?: boolean
    • Optional joinToSend?: boolean
    • Optional joinRequest?: boolean
    • Optional forum?: boolean
    • Optional storiesHidden?: boolean
    • Optional storiesHiddenMin?: boolean
    • Optional storiesUnavailable?: boolean
    • id: BigInteger
    • Optional accessHash?: BigInteger
    • title: string
    • Optional username?: string
    • photo: TypeChatPhoto
    • date: number
    • Optional restrictionReason?: RestrictionReason[]
    • Optional adminRights?: ChatAdminRights
    • Optional bannedRights?: ChatBannedRights
    • Optional defaultBannedRights?: ChatBannedRights
    • Optional participantsCount?: number
    • Optional usernames?: Api.Username[]
    • Optional storiesMaxId?: number
    • Optional color?: PeerColor
    • Optional profileColor?: PeerColor
    • Optional emojiStatus?: TypeEmojiStatus
    • Optional level?: number

Constructors

  • new Channel(args: { 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; storiesHidden?: boolean; storiesHiddenMin?: boolean; storiesUnavailable?: boolean; id: BigInteger; accessHash?: BigInteger; title: string; username?: string; photo: TypeChatPhoto; date: number; restrictionReason?: RestrictionReason[]; adminRights?: ChatAdminRights; bannedRights?: ChatBannedRights; defaultBannedRights?: ChatBannedRights; participantsCount?: number; usernames?: Api.Username[]; storiesMaxId?: number; color?: PeerColor; profileColor?: PeerColor; emojiStatus?: TypeEmojiStatus; level?: number }): Channel
  • Parameters

    • args: { 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; storiesHidden?: boolean; storiesHiddenMin?: boolean; storiesUnavailable?: boolean; id: BigInteger; accessHash?: BigInteger; title: string; username?: string; photo: TypeChatPhoto; date: number; restrictionReason?: RestrictionReason[]; adminRights?: ChatAdminRights; bannedRights?: ChatBannedRights; defaultBannedRights?: ChatBannedRights; participantsCount?: number; usernames?: Api.Username[]; storiesMaxId?: number; color?: PeerColor; profileColor?: PeerColor; emojiStatus?: TypeEmojiStatus; level?: number }
      • Optional creator?: boolean
      • Optional left?: boolean
      • Optional broadcast?: boolean
      • Optional verified?: boolean
      • Optional megagroup?: boolean
      • Optional restricted?: boolean
      • Optional signatures?: boolean
      • Optional min?: boolean
      • Optional scam?: boolean
      • Optional hasLink?: boolean
      • Optional hasGeo?: boolean
      • Optional slowmodeEnabled?: boolean
      • Optional callActive?: boolean
      • Optional callNotEmpty?: boolean
      • Optional fake?: boolean
      • Optional gigagroup?: boolean
      • Optional noforwards?: boolean
      • Optional joinToSend?: boolean
      • Optional joinRequest?: boolean
      • Optional forum?: boolean
      • Optional storiesHidden?: boolean
      • Optional storiesHiddenMin?: boolean
      • Optional storiesUnavailable?: boolean
      • id: BigInteger
      • Optional accessHash?: BigInteger
      • title: string
      • Optional username?: string
      • photo: TypeChatPhoto
      • date: number
      • Optional restrictionReason?: RestrictionReason[]
      • Optional adminRights?: ChatAdminRights
      • Optional bannedRights?: ChatBannedRights
      • Optional defaultBannedRights?: ChatBannedRights
      • Optional participantsCount?: number
      • Optional usernames?: Api.Username[]
      • Optional storiesMaxId?: number
      • Optional color?: PeerColor
      • Optional profileColor?: PeerColor
      • Optional emojiStatus?: TypeEmojiStatus
      • Optional level?: number

    Returns Channel

Generated using TypeDoc