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

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

MTProto API Client for Deno 🦕
Go to Latest
class DatabaseSession
extends MemorySession
import { DatabaseSession } from "https://deno.land/x/grm@0.5.1/src/sessions/mod.ts";

Constructors

new
DatabaseSession(sessionName: string, connectionOptions: ConnectionOptions)

Properties

private
dbConnection: denodb.Database
private
dbInitialized: boolean
private
optional
session: Session
authKey: AuthKey | undefined
sessionName: string

Methods

getEntityRowsById(id: string | bigInt.BigInteger, exact?)
getEntityRowsByName(name: string)
getEntityRowsByPhone(phone: string)
getEntityRowsByUsername(username: string)
processEntities(tlo: any)
setDC(
dcId: number,
serverAddress: string,
port: number,
): void