Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mtkruto/client/5_client.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.2.24/client/5_client.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