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

x/mtkruto/mod.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.102/mod.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
>