Skip to main content
Deno 2 is finally here 🎉️
Learn more
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.4/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
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