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

x/mtkruto/tl/3_utilities.ts>peerToChatId

Cross-runtime JavaScript library for building Telegram clients
Latest
function peerToChatId
import { peerToChatId } from "https://deno.land/x/mtkruto@0.6.2/tl/3_utilities.ts";

Parameters

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

Returns

number