Skip to main content
Module

x/mtkruto/mod.ts>Client#signIn

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