import { Storage } from "https://deno.land/x/mtkruto@0.1.0/storage/0_storage.ts";
Methods
private
resetAuthKeyId(authKey: Uint8Array | null)abstract
get<T>(key: readonly StorageKeyPart[]): MaybePromise<T | null>getChannelAccessHash(id: bigint)
getChannelPts(channelId: bigint)
getDc()
getEntity(type: "channel", id: bigint): Promise<types.Channel | null>
getEntity(type: "chat", id: bigint): Promise<types.Chat | null>
getEntity(type: "user", id: bigint): Promise<types.User | null>
getEntity(type: "channel" | "chat" | "user", id: bigint): Promise<>
| types.Channel
| types.Chat
| types.User
| null
getMessage(chatId: number, messageId: number)
getMessageChat(messageId: number)
getState()
getStickerSetName(id: bigint, accessHash: bigint)
getTLObject(key: readonly StorageKeyPart[])
getUserAccessHash(id: bigint)
getUsername(username: string)
abstract
init(): MaybePromise<void>abstract
set(key: readonly StorageKeyPart[], value: unknown): MaybePromise<void>setAccountType(type: "user" | "bot")
setAuthKey(authKey: Uint8Array | null)
setChannelAccessHash(id: bigint, accessHash: bigint)
setChannelPts(channelId: bigint, pts: number)
setEntity(peer: types.Channel): Promise<void>
setEntity(peer: types.Chat): Promise<void>
setEntity(peer: types.User): Promise<void>
setMessage()
chatId: number,
messageId: number,
message: types.TypeMessage | null,
setState(state: types.UpdatesState)
setTlObject(key: readonly StorageKeyPart[], value: TLObject | null)
setUserAccessHash(id: bigint, accessHash: bigint)
updateStickerSetName()
id: bigint,
accessHash: bigint,
name: string,
updateUsernames()
type: "user" | "channel",
id: bigint,
usernames: string[],