Skip to main content
Module

x/grm/mod.ts>Session

MTProto API Client for Deno 🦕
Go to Latest
class Session
Re-export
Abstract
import { Session } from "https://deno.land/x/grm@0.6.0/mod.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