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

x/mtkruto/types/1__getters.ts>EntityGetter

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
interface EntityGetter
import { type EntityGetter } from "https://deno.land/x/mtkruto@0.1.141/types/1__getters.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
>