Methods

signIn

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 parameters to be passed when constructing the client.
  2. Reconnects the client to the appropriate DC in case of MIGRATE_X errors.

Parameters

params?: SignInParams

Result

void

Syntax

// Without the optional parameter.
await client.signIn();

// With the optional parameter.
await client.signIn(params);