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

x/mtkruto/mod.ts>Storage#getEntity

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.147/mod.ts";

Parameters

type: "channel"
id: bigint

Returns

Promise<types.Channel | types.ChannelForbidden | null>

Parameters

type: "chat"
id: bigint

Returns

Promise<types.Chat | types.ChatForbidden | null>

Parameters

type: "user"
id: bigint

Returns

Promise<types.User | null>

Parameters

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

Returns

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