@tgsnake/skema
    Preparing search index...

    Class ChannelFull

    Base abstract class for all Type Language (TL) schema objects within the MTProto protocol.

    In the Telegram MTProto protocol, messages and API payloads are defined in a custom ID-based schema language called Type Language (TL). TLObject is the root class providing fundamental binary serialization (write) and deserialization (read) interfaces, alongside custom console print formatters and standard JSON serializers.

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • params: {
            about: string;
            adminsCount?: number;
            antispam?: boolean;
            availableMinId?: number;
            availableReactions?: TypeChatReactions;
            bannedCount?: number;
            blocked?: boolean;
            boostsApplied?: number;
            boostsUnrestrict?: number;
            botInfo: Raw.Vector<Raw.BotInfo>;
            botVerification?: BotVerification;
            call?: TypeInputGroupCall;
            canDeleteChannel?: boolean;
            canSetLocation?: boolean;
            canSetStickers?: boolean;
            canSetUsername?: boolean;
            canViewParticipants?: boolean;
            canViewRevenue?: boolean;
            canViewStarsRevenue?: boolean;
            canViewStats?: boolean;
            chatPhoto: Raw.TypePhoto;
            defaultSendAs?: TypePeer;
            emojiset?: Raw.StickerSet;
            exportedInvite?: Raw.TypeExportedChatInvite;
            folderId?: number;
            groupcallDefaultJoinAs?: TypePeer;
            guardBotId?: bigint;
            hasScheduled?: boolean;
            hiddenPrehistory?: boolean;
            id: bigint;
            kickedCount?: number;
            linkedChatId?: bigint;
            location?: TypeChannelLocation;
            mainTab?: TypeProfileTab;
            migratedFromChatId?: bigint;
            migratedFromMaxId?: number;
            notifySettings: PeerNotifySettings;
            onlineCount?: number;
            paidMediaAllowed?: boolean;
            paidMessagesAvailable?: boolean;
            paidReactionsAvailable?: boolean;
            participantsCount?: number;
            participantsHidden?: boolean;
            pendingSuggestions?: Raw.Vector<string>;
            pinnedMsgId?: number;
            pts: number;
            reactionsLimit?: number;
            readInboxMaxId: number;
            readOutboxMaxId: number;
            recentRequesters?: Raw.Vector<bigint>;
            requestsPending?: number;
            restrictedSponsored?: boolean;
            sendPaidMessagesStars?: bigint;
            slowmodeNextSendDate?: number;
            slowmodeSeconds?: number;
            stargiftsAvailable?: boolean;
            stargiftsCount?: number;
            statsDc?: number;
            stickerset?: Raw.StickerSet;
            stories?: Raw.PeerStories;
            storiesPinnedAvailable?: boolean;
            themeEmoticon?: string;
            translationsDisabled?: boolean;
            ttlPeriod?: number;
            unreadCount: number;
            viewForumAsMessages?: boolean;
            wallpaper?: TypeWallPaper;
        }

      Returns ChannelFull

    Properties

    _slots: string[]

    The internal slot list storing serialization field property names.

    about: string
    adminsCount?: number
    antispam?: boolean
    availableMinId?: number
    availableReactions?: TypeChatReactions
    bannedCount?: number
    blocked?: boolean
    boostsApplied?: number
    boostsUnrestrict?: number
    botInfo: Raw.Vector<Raw.BotInfo>
    botVerification?: BotVerification
    canDeleteChannel?: boolean
    canSetLocation?: boolean
    canSetStickers?: boolean
    canSetUsername?: boolean
    canViewParticipants?: boolean
    canViewRevenue?: boolean
    canViewStarsRevenue?: boolean
    canViewStats?: boolean
    chatPhoto: Raw.TypePhoto
    className: string

    The canonical string name of this class representation.

    classType: string

    The underlying classification type (e.g. request, constructor, function).

    cls: any = ...

    A dynamic reference to the current subclass constructor. Enables late static binding for instance methods to access static helper operations.

    constructorId: number

    The unique 32-bit integer identifier (CRC32 checksum) of this TL constructor.

    defaultSendAs?: TypePeer
    emojiset?: Raw.StickerSet
    exportedInvite?: Raw.TypeExportedChatInvite
    folderId?: number
    groupcallDefaultJoinAs?: TypePeer
    guardBotId?: bigint
    hasScheduled?: boolean
    hiddenPrehistory?: boolean
    id: bigint
    kickedCount?: number
    linkedChatId?: bigint
    mainTab?: TypeProfileTab
    migratedFromChatId?: bigint
    migratedFromMaxId?: number
    notifySettings: PeerNotifySettings
    onlineCount?: number
    paidMediaAllowed?: boolean
    paidMessagesAvailable?: boolean
    paidReactionsAvailable?: boolean
    participantsCount?: number
    participantsHidden?: boolean
    pendingSuggestions?: Raw.Vector<string>
    pinnedMsgId?: number
    pts: number
    reactionsLimit?: number
    readInboxMaxId: number
    readOutboxMaxId: number
    recentRequesters?: Raw.Vector<bigint>
    requestsPending?: number
    restrictedSponsored?: boolean
    sendPaidMessagesStars?: bigint
    slowmodeNextSendDate?: number
    slowmodeSeconds?: number
    stargiftsAvailable?: boolean
    stargiftsCount?: number
    statsDc?: number
    stickerset?: Raw.StickerSet
    stories?: Raw.PeerStories
    storiesPinnedAvailable?: boolean
    subclassOfId: number

    The unique 32-bit integer identifier of the parent/abstract type this TL subclass represents.

    themeEmoticon?: string
    translationsDisabled?: boolean
    ttlPeriod?: number
    unreadCount: number
    viewForumAsMessages?: boolean
    wallpaper?: TypeWallPaper

    Methods

    • Deserializes a binary stream into this specific TLObject instance.

      Parameters

      • data: BytesIO

        The BytesIO buffer stream containing the serialized TLObject.

      • ...args: any[]

        Additional arguments passed down to the read parser.

      Returns Promise<any>

      A promise resolving to the parsed instance.

    • Serializes the TLObject instance to a clean JSON-compatible representation.

      Returns { [key: string]: any }

      A plain object containing class attributes and values.

      Correctly stringifies extremely large fields (e.g. bigints) that are normally not serializable in standard JSON.stringify calls.

    • Formats the TLObject into a structured string.

      Returns string

      A string starting with the constructor name followed by a pretty JSON payload.

    • Generate the TLObject from buffer.

      Parameters

      • _data: BytesIO

        BytesIO class from TLObject will be convert to TLObject class.

      • ..._args: any[]

      Returns Promise<ChannelFull>

    • Serializes constructor arguments into a raw binary buffer.

      Parameters

      • ..._args: any[]

        Arguments to be serialized.

      Returns Buffer

      An empty Buffer of size 0.

      This base implementation acts as an abstract stub returning an empty Buffer. Subclasses override this static method to handle specific binary serialization layouts.