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
Fix sync auth for not default DC in version 3.0.0-beta.4. Also refactor transport
Related issue: https://github.com/alik0211/mtproto-core/issues/18
Install:
Related issue: https://github.com/alik0211/mtproto-core/issues/18
Install:
yarn add -E @mtproto/core@beta
Update docs in version 3.0.0-beta.6. Also improve handle updates
Install:
Install:
yarn add -E @mtproto/core@beta
This is the last beta release before the stable release. If you have problems with this version, create an issue on github with a detailed description of the problemFix an error with packaging for TCP transport (this caused an error in nodejs) in version 3.0.0-beta.7
Install:
Install:
yarn add -E @mtproto/core@beta
Related issue: https://github.com/alik0211/mtproto-core/issues/15You can specify your localStorage to save authorization in version 3.2.0. Changes:
- Update layer to 113
- Observe security guidelines
- Fix the deserialization of the vector
- Handle bad_server_salt and bad_msg_notification
- Use only nodejs version 12 and higher
- Refactor utils
- Refactor verifyDhParams
- Refactor transport
Install:
- Update layer to 113
- Observe security guidelines
- Fix the deserialization of the vector
- Handle bad_server_salt and bad_msg_notification
- Use only nodejs version 12 and higher
- Refactor utils
- Refactor verifyDhParams
- Refactor transport
Install:
yarn add -E @mtproto/core
Add support async custom storage in version 3.3.0. Also fix deserialize double
Install: https://github.com/alik0211/mtproto-core#install
Install: https://github.com/alik0211/mtproto-core#install
Rewrite authentication guide and add handling common errors guide in version 3.4.0. Also don't load default storage if you have custom storage and fix types file.
Read guides: https://github.com/alik0211/mtproto-core#guides
Read guides: https://github.com/alik0211/mtproto-core#guides
Rewritten serialization and deserialization in version 4.0.0:
1. If the method needs the
2. Removed the
3. Added a types file. Thanks, sh-a-v
4. Add updateInitConnectionParams method
1. If the method needs the
flags
parameter, flags
is calculated automatically 🙃2. Removed the
pFlags
object from the responses3. Added a types file. Thanks, sh-a-v
4. Add updateInitConnectionParams method
Fix deserialization errors in version 5.0.0. Thank you very much, softforseeker! Also:
1. Add logger (documentation will be available later)
2. Import only inflate from pako
3. Fix the serialization of boolean flags
This is a major update, because the logic of serialization and deserialization was rewritten. There are no breaking changes
1. Add logger (documentation will be available later)
2. Import only inflate from pako
3. Fix the serialization of boolean flags
This is a major update, because the logic of serialization and deserialization was rewritten. There are no breaking changes
In version 5.1.0:
Add counter
Now the exact number of bytes is allocated before serialization, thanks to the counter. It fix error RangeError: Source is too large
Update authentication guide
Added a stage for getting a user. It will help you check whether the user is logged in. I also rewrote the example using a async/await - https://github.com/alik0211/mtproto-core/blob/master/docs/authentication.md
Add counter
Now the exact number of bytes is allocated before serialization, thanks to the counter. It fix error RangeError: Source is too large
Update authentication guide
Added a stage for getting a user. It will help you check whether the user is logged in. I also rewrote the example using a async/await - https://github.com/alik0211/mtproto-core/blob/master/docs/authentication.md
In version 5.2.0:
Problems with reconnecting and hanging fixed
To do this, I started storing the socket state in the transport module and add acknowledgment logic for outgoing messages
Handle FLOOD_WAIT_X
In the guide "Handling common errors" added information about how to handle the FLOOD_WAIT_X error - https://github.com/alik0211/mtproto-core/blob/master/docs/handling-common-errors.md
Unit testing and playground
Removed karma. Use jest instead jasmine. Moved the playground to a separate repository
Problems with reconnecting and hanging fixed
To do this, I started storing the socket state in the transport module and add acknowledgment logic for outgoing messages
Handle FLOOD_WAIT_X
In the guide "Handling common errors" added information about how to handle the FLOOD_WAIT_X error - https://github.com/alik0211/mtproto-core/blob/master/docs/handling-common-errors.md
Unit testing and playground
Removed karma. Use jest instead jasmine. Moved the playground to a separate repository
Forwarded from Gasymov's Channel (Ali Gasymov)
Screw It, I'll rewrite the @mtproto_core before the summer
In what environment do you use (or want to use) the library?
Anonymous Poll
81%
Node JS
15%
Browser
5%
Electron
5%
React Native
5%
Other