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

x/mtkruto/mod.ts>Client#connect

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

Loads the session if setDc was not called, initializes and connnects a ClientPlain to generate auth key if there was none, and connects the client. Before establishing the connection, the session is saved.