Skip to main content
Module

x/grm/mod.ts>sessions.Session

MTProto API Client for Deno 🦕
Go to Latest
class sessions.Session
Re-export
Abstract
import { sessions } from "https://deno.land/x/grm@0.5.2/mod.ts";
const { Session } = sessions;

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