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

x/mtkruto/mod.ts>Client#signIn

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

Signs in using the provided parameters if not already signed in. If no parameters are provided, the credentials will be prompted in runtime.

Notes:

  1. Requires the apiId and apiHash paramters to be passed when constructing the client.
  2. Reconnects the client to the appropriate DC in case of MIGRATE_X errors.

Parameters

optional
params: SignInParams