psqq / mtproto-core

Telegram API JS (MTProto) client library for Node.js and browser

Home Page:https://mtproto-core.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a fork from alik0211/mtproto-core created to try and update the schema API version for my work project. Use at your own risk :).

@mtproto/core

NPM GitHub Actions Downloads Telegram channel

Telegram API JS (MTProto) client library for Node.js and browser

  • Actual. 170 layer in the API scheme
  • Fast. For the Node.js, it uses the TCP and crypto module. For the browser, it uses WebSocket and window.crypto
  • Easy. Cryptography is hidden. Work with the API at a high level
  • Smart. Automatically sync authorization on all DCs
  • 2FA. Use the library's built-in function to calculate 2FA parameters
  • Secure. Complies with Telegram security guidelines

Documentation

You can find the documentation on mtproto-core.js.org/docs website

License

GPLv3

examples

Edit .env:

TELEGRAM_API_ID=...
TELEGRAM_API_HASH=...

running help-getNearestDc for example:

node --env-file=.env ./examples/help-getNearestDc/index.js

or

TELEGRAM_API_ID=... TELEGRAM_API_HASH=... node ./examples/help-getNearestDc/index.js

About

Telegram API JS (MTProto) client library for Node.js and browser

https://mtproto-core.js.org

License:GNU General Public License v3.0


Languages

Language:JavaScript 100.0%