Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mtkruto/3_storage.ts>Storage#getEntity

[WIP] Cross-runtime JavaScript library for building Telegram clients
Go to Latest
method Storage.prototype.getEntity
Re-export
import { Storage } from "https://deno.land/x/mtkruto@0.1.105/3_storage.ts";

Parameters

type: "channel"
id: bigint

Returns

Promise<types.Channel | null>

Parameters

type: "chat"
id: bigint

Returns

Promise<types.Chat | null>

Parameters

type: "user"
id: bigint

Returns

Promise<types.User | null>

Parameters

type: "channel" | "chat" | "user"
id: bigint

Returns

Promise<
| types.Channel
| types.Chat
| types.User
| null
>