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

x/mtkruto/3_types.ts>EntityGetter

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
interface EntityGetter
Re-export
import { type EntityGetter } from "https://deno.land/x/mtkruto@0.1.141/3_types.ts";

Call Signatures

(peer: types.PeerUser): MaybePromise<types.User | null>
(peer: types.PeerChat): MaybePromise<types.Chat | types.ChatForbidden | null>
(peer: types.PeerChannel): MaybePromise<types.Channel | types.ChannelForbidden | null>
(peer: types.PeerUser | types.PeerChat | types.PeerChannel): MaybePromise<
| types.User
| types.Chat
| types.ChatForbidden
| types.Channel
| types.ChannelForbidden
| null
>