Class TelegramWorkerPort<Custom>Abstract

Type Parameters

Hierarchy

  • TelegramWorkerPort

    Implements

    Constructors

    Properties

    appConfig: AppConfigManagerProxy
    changePrimaryDc: ((newDc: number) => Promise<void>)
    close: (() => Promise<void>)
    computeNewPasswordHash: ((algo: TypePasswordKdfAlgo, password: string) => Promise<Uint8Array>)
    computeSrpParams: ((request: RawPassword, password: string) => Promise<RawInputCheckPasswordSRP>)
    exportSession: (() => Promise<string>)
    getApiCrenetials: (() => Promise<{
        hash: string;
        id: number;
    }>)
    getMtprotoMessageId: (() => Promise<Long>)
    getPoolSize: ((kind: ConnectionKind, dcId?: number) => Promise<number>)
    getPrimaryDcId: (() => Promise<number>)
    handleClientUpdate: ((updates: TypeUpdates, noDispatch?: boolean) => void)
    importSession: ((session: string | StringSessionData, force?: boolean) => Promise<void>)
    notifyChannelClosed: ((channelId: number) => Promise<boolean>)
    notifyChannelOpened: ((channelId: number, pts?: number) => Promise<boolean>)
    notifyLoggedIn: ((auth: RawUser | TypeAuthorization) => Promise<RawUser>)
    notifyLoggedOut: (() => Promise<void>)
    prepare: (() => Promise<void>)
    startUpdatesLoop: (() => Promise<void>)
    stopSignal: AbortSignal = ...
    stopUpdatesLoop: (() => Promise<void>)
    storage: TelegramStorageProxy

    Methods