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
Latest
interface EntityGetter
Re-export
import { type EntityGetter } from "https://deno.land/x/mtkruto@0.6.2/3_types.ts";

Call Signatures

(peer: Api.peerUser): MaybePromise<Api.user | null>
(peer: Api.peerChat): MaybePromise<Api.chat | Api.chatForbidden | null>
(peer: Api.peerChannel): MaybePromise<Api.channel | Api.channelForbidden | null>
(peer: Api.peerUser | Api.peerChat | Api.peerChannel): MaybePromise<
| Api.user
| Api.chat
| Api.chatForbidden
| Api.channel
| Api.channelForbidden
| null
>