Support for all DC's add in version 3.0.0-beta.3. Also add support 2FA for NodeJS
New argument in call: mtproto.call(method, params, options)
1. Authorization is automatically copied to all DC if the options.syncAuth flag is set to true. Default options.dcId is false. Note: it makes sense to set this flag only for authorization methods, for example: auth.signIn and auth.checkPassword.
2. To make a call on a specific DC, pass the options.dcId. Default options.dcId is 2
Install:
New argument in call: mtproto.call(method, params, options)
1. Authorization is automatically copied to all DC if the options.syncAuth flag is set to true. Default options.dcId is false. Note: it makes sense to set this flag only for authorization methods, for example: auth.signIn and auth.checkPassword.
2. To make a call on a specific DC, pass the options.dcId. Default options.dcId is 2
Install:
yarn add -E @mtproto/core@beta