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

x/mtkruto/mod.ts>peerToChatId

Cross-runtime JavaScript library for building Telegram clients
Latest
function peerToChatId
Re-export
import { peerToChatId } from "https://deno.land/x/mtkruto@0.6.3/mod.ts";

Parameters

peer:
| Api.Peer
| Api.InputPeer
| AnyEntity
| Api.channelFull
| Api.UserFull
| Api.chatFull
| { channel_id: bigint; }
| { user_id: bigint; }
| { chat_id: bigint; }

Returns

number