Skip to main content
Module

x/grm/mod.ts>MemorySession

MTProto API Client for Deno 🦕
Latest
class MemorySession
extends Session
Re-export
import { MemorySession } from "https://deno.land/x/grm@0.8.2/mod.ts";

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)
getInputEntity(key: Api.TypeEntityLike): Promise<Api.TypeInputPeer>
processEntities(tlo: any)
setAuthKey(authKey?: AuthKey, dcId?: number)
setDC(
dcId: number,
serverAddress: string,
port: number,
)