Skip to main content
Module

x/mtkruto/mod.ts>Storage

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class Storage
Re-export
Abstract
import { Storage } from "https://deno.land/x/mtkruto@0.0.835/mod.ts";

Properties

private
_authKeyId: bigint | null
private
readonly
channelAccessHash__: string
private
readonly
userAccessHash__: string
private
readonly
username__: string
readonly
authKeyId

Methods

private
resetAuthKeyId(authKey: Uint8Array | null)
abstract
get(key: string): MaybePromise<string | null>
getUserAccessHash(id: bigint)
getUsername(username: string)
abstract
init(): MaybePromise<void>
abstract
set(key: string, value: string | null): MaybePromise<void>
setAuthKey(authKey: Uint8Array | null)
setChannelAccessHash(id: bigint, accessHash: bigint)
setDc(dc: DC | null)
setUserAccessHash(id: bigint, accessHash: bigint)
updateUsernames(
type: "user" | "channel",
id: bigint,
usernames: string[],
)