Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/grm/src/sessions/abstract.ts>Session

MTProto API Client for Deno 🦕
Go to Latest
class Session
Abstract
import { Session } from "https://deno.land/x/grm@0.5.1/src/sessions/abstract.ts";

Properties

abstract
authKey: AuthKey | undefined
abstract
readonly
dcId: number
abstract
readonly
port: number
abstract
readonly
serverAddress: string

Methods

abstract
close(): void
abstract
delete(): void
abstract
getAuthKey(dcId?: number): AuthKey | undefined
abstract
getInputEntity(key: Api.TypeEntityLike): Promise<Api.TypeInputPeer>
abstract
load(): Promise<void>
abstract
processEntities(tlo: any): void
abstract
save(): void
abstract
setAuthKey(authKey?: AuthKey, dcId?: number): void
abstract
setDC(
dcId: number,
serverAddress: string,
port: number,
): void