Skip to main content
The Deno 2 Release Candidate is 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.128/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