@tgsnake/skema
    Preparing search index...

    Class Config

    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: {
            autologinToken?: string;
            autoupdateUrlPrefix?: string;
            baseLangPackVersion?: number;
            blockedMode?: boolean;
            callConnectTimeoutMs: number;
            callPacketTimeoutMs: number;
            callReceiveTimeoutMs: number;
            callRingTimeoutMs: number;
            captionLengthMax: number;
            channelsReadMediaPeriod: number;
            chatSizeMax: number;
            date: number;
            dcOptions: Raw.Vector<DcOption>;
            dcTxtDomainName: string;
            defaultP2pContacts?: boolean;
            editTimeLimit: number;
            expires: number;
            forceTryIpv6?: boolean;
            forwardedCountMax: number;
            gifSearchUsername?: string;
            imgSearchUsername?: string;
            langPackVersion?: number;
            megagroupSizeMax: number;
            messageLengthMax: number;
            meUrlPrefix: string;
            notifyCloudDelayMs: number;
            notifyDefaultDelayMs: number;
            offlineBlurTimeoutMs: number;
            offlineIdleTimeoutMs: number;
            onlineCloudTimeoutMs: number;
            onlineUpdatePeriodMs: number;
            preloadFeaturedStickers?: boolean;
            pushChatLimit: number;
            pushChatPeriodMs: number;
            ratingEDecay: number;
            reactionsDefault?: TypeReaction;
            revokePmInbox?: boolean;
            revokePmTimeLimit: number;
            revokeTimeLimit: number;
            staticMapsProvider?: string;
            stickersRecentLimit: number;
            suggestedLangCode?: string;
            testMode: boolean;
            thisDc: number;
            tmpSessions?: number;
            venueSearchUsername?: string;
            webfileDcId: number;
        }

      Returns Config

    Properties

    _slots: string[]

    Internal array of slot names for the object.

    autologinToken?: string
    autoupdateUrlPrefix?: string
    baseLangPackVersion?: number
    blockedMode?: boolean
    callConnectTimeoutMs: number
    callPacketTimeoutMs: number
    callReceiveTimeoutMs: number
    callRingTimeoutMs: number
    captionLengthMax: number
    channelsReadMediaPeriod: number
    chatSizeMax: number
    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.

    date: number
    dcOptions: Raw.Vector<DcOption>
    dcTxtDomainName: string
    defaultP2pContacts?: boolean
    editTimeLimit: number
    expires: number
    forceTryIpv6?: boolean
    forwardedCountMax: number
    gifSearchUsername?: string
    imgSearchUsername?: string
    langPackVersion?: number
    megagroupSizeMax: number
    messageLengthMax: number
    meUrlPrefix: string
    notifyCloudDelayMs: number
    notifyDefaultDelayMs: number
    offlineBlurTimeoutMs: number
    offlineIdleTimeoutMs: number
    onlineCloudTimeoutMs: number
    onlineUpdatePeriodMs: number
    preloadFeaturedStickers?: boolean
    pushChatLimit: number
    pushChatPeriodMs: number
    ratingEDecay: number
    reactionsDefault?: TypeReaction
    revokePmInbox?: boolean
    revokePmTimeLimit: number
    revokeTimeLimit: number
    staticMapsProvider?: string
    stickersRecentLimit: number
    subclassOfId: number

    Identifier for the parent class (if any).

    suggestedLangCode?: string
    testMode: boolean
    thisDc: number
    tmpSessions?: number
    venueSearchUsername?: string
    webfileDcId: number

    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<Config>

    • 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.