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
Go to Latest
method Client.prototype.[getEntity]
import { Client } from "https://deno.land/x/mtkruto@0.1.157/mod.ts";

Parameters

peer: types.PeerUser

Returns

Promise<types.User | null>

Parameters

peer: types.PeerChat

Returns

Promise<types.Chat | types.ChatForbidden | null>

Parameters

peer: types.PeerChannel

Returns

Promise<types.Channel | types.ChannelForbidden | null>

Parameters

peer: types.PeerUser | types.PeerChat | types.PeerChannel

Returns

Promise<
| types.User
| types.Chat
| types.ChatForbidden
| types.Channel
| types.ChannelForbidden
| null
>