Skip to main content
Module

x/grm/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.0/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