@tgsnake/skema
    Preparing search index...

    Class ChannelFull

    Represents a base class for TL (Type Language) objects.

    This class provides serialization and deserialization logic for TL objects, as well as utility methods for inspection and JSON conversion.

    • The class is designed to be extended by specific TL object implementations.
    • It mimics some Python class behaviors for compatibility with TL schemas.
    class MyTLObject extends TLObject {
    // Custom implementation
    }

    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;
            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[]

    Internal array of slot names for the object.

    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

    Name of the class.

    classType: string

    Type of the class.

    cls: any = ...

    Reference to the constructor of the current class (late static binding).

    constructorId: number

    Unique identifier for the constructor.

    defaultSendAs?: TypePeer
    emojiset?: Raw.StickerSet
    exportedInvite?: Raw.TypeExportedChatInvite
    folderId?: number
    groupcallDefaultJoinAs?: TypePeer
    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

    Identifier for the parent class (if any).

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

    Methods

    • Reads data from the provided BytesIO instance and processes it using the associated class's read method.

      Parameters

      • data: BytesIO

        The BytesIO instance containing the data to be read.

      • ...args: any[]

        Additional arguments to be passed to the class's read method.

      Returns Promise<any>

      A promise that resolves with the result of the read operation.

    • Generate the TLObject from buffer.

      Parameters

      • _data: BytesIO

        BytesIO class from TLObject will be convert to TLObject class.

      • ..._args: any[]

      Returns Promise<ChannelFull>

    • Serializes the provided arguments into a Buffer.

      Parameters

      • ..._args: any[]

        The arguments to be serialized.

      Returns Buffer

      A Buffer containing the serialized data.

      This is a static method. The current implementation returns an empty Buffer.