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

x/grm/src/mod.ts>tgClient.AbstractTelegramClient#getDC

MTProto API Client for Deno 🦕
Go to Latest
method tgClient.AbstractTelegramClient.prototype.getDC
import { tgClient } from "https://deno.land/x/grm@0.5.2/src/mod.ts";
const { AbstractTelegramClient } = tgClient;

Parameters

dcId: number
optional
downloadDC = [UNSUPPORTED]
optional
web = [UNSUPPORTED]

Returns

Promise<{ id: number; ipAddress: string; port: number; }>