Skip to main content
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.24/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.