Skip to main content
Module

x/mtkruto/mod.ts>Client#setDc

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
method Client.prototype.setDc
import { Client } from "https://deno.land/x/mtkruto@0.2.24/mod.ts";

Sets the DC and resets the auth key stored in the session provider if the stored DC was not the same as the dc parameter.

Parameters

dc: DC

The DC to change to.