Type Parameters

Hierarchy (View Summary)

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>
getApiCredentials: () => 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 | InputStringSessionData,
    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>
onConnectionState: Emitter<ConnectionState> = ...
onError: Emitter<Error> = ...
onRawUpdate: Emitter<RawUpdateInfo> = ...
onServerUpdate: Emitter<TypeUpdates> = ...
platform: ICorePlatform
prepare: () => Promise<void>
recreateDc: (dcId: number) => Promise<void>
startUpdatesLoop: () => Promise<void>
stopSignal: AbortSignal = ...
stopUpdatesLoop: () => Promise<void>
storage: TelegramStorageProxy
timers: TimersManager

Methods

  • Type Parameters

    • T extends RpcMethod

    Parameters

    Returns Promise<RpcCallReturn[T["_"]]>

  • Returns Promise<void>

  • Parameters

    • terminate: boolean = false

    Returns void

  • Type Parameters

    • T extends string | number | symbol

    Parameters

    • method: T
    • ...args: Parameters<T[T]>

    Returns Promise<ReturnType<T[T]>>