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

x/grm/src/mod.ts>sessions.MemorySession

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

Constructors

new
MemorySession()

Properties

protected
optional
_authKey: AuthKey
protected
_dcId: number
protected
_entities: Set<any>
protected
optional
_port: number
protected
optional
_serverAddress: string
protected
_takeoutId: undefined
protected
_updateStates: Record<never, never>
authKey
readonly
dcId
readonly
port
readonly
serverAddress
takeoutId

Methods

_entitiesToRows(tlo: any)
_entityToRow(e: any)
_entityValuesToRow(
id: bigInt.BigInteger | string,
hash: bigInt.BigInteger | string,
username: string,
phone: string,
name: string,
)
getAuthKey(dcId?: number)
getEntityRowsById(id: string | bigInt.BigInteger, exact?)
getEntityRowsByName(name: string)
getEntityRowsByPhone(phone: string)
getEntityRowsByUsername(username: string)
processEntities(tlo: any)
setAuthKey(authKey?: AuthKey, dcId?: number)
setDC(
dcId: number,
serverAddress: string,
port: number,
)