Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/mtkruto/mod.ts>Client#connect

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
method Client.prototype.connect
import { Client } from "https://deno.land/x/mtkruto@0.2.30/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.