class sessions.MemorySession
extends Session
Re-export
import { sessions } from "https://deno.land/x/grm@0.6.0/mod.ts";
const { MemorySession } = sessions;
Properties
protected
optional
_authKey: AuthKeyMethods
_entitiesToRows(tlo: any)
_entityToRow(e: any)
_entityValuesToRow()
id: bigInt.BigInteger | string,
hash: bigInt.BigInteger | string,
username: string,
phone: string,
name: string,
close()
delete()
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>
load()
processEntities(tlo: any)
save()
setAuthKey(authKey?: AuthKey, dcId?: number)
setDC()
dcId: number,
serverAddress: string,
port: number,