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

x/mtkruto/mod.ts>Client#[getEntity]

Cross-runtime JavaScript library for building Telegram clients
Latest
method Client.prototype.[getEntity]
import { Client } from "https://deno.land/x/mtkruto@0.6.3/mod.ts";

Parameters

peer: Api.peerUser

Returns

Promise<Api.user | null>

Parameters

peer: Api.peerChat

Returns

Promise<Api.chat | Api.chatForbidden | null>

Parameters

peer: Api.peerChannel

Returns

Promise<Api.channel | Api.channelForbidden | null>

Parameters

peer: Api.peerUser | Api.peerChat | Api.peerChannel

Returns

Promise<
| Api.user
| Api.chat
| Api.chatForbidden
| Api.channel
| Api.channelForbidden
| null
>