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

x/mtkruto/2_tl.ts>peerToChatId

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

Parameters

peer:
| { channel_id: bigint; }
| { user_id: bigint; }
| { chat_id: bigint; }

Returns

number