{"_id":"@2012mjm/telegram-mt-node","_rev":"2-d09cedea15457d782cfb9fab98b31850","name":"@2012mjm/telegram-mt-node","description":"Telegram MTProto library","dist-tags":{"latest":"0.9.16"},"versions":{"0.9.16":{"name":"@2012mjm/telegram-mt-node","version":"0.9.16","description":"Telegram MTProto library","publishConfig":{"access":"public"},"keywords":["telegram","mt","mtproto","mobile","protocol","library"],"author":{"name":"Enrico Stara","email":"enrico.stara@gmail.com"},"homepage":"https://githubcom/goodmind/telegram-mt-node","repository":{"type":"git","url":"git://github.com/goodmind/telegram-mt-node.git"},"bugs":{"url":"https://github.com/goodmind/telegram-mt-node/issues"},"license":"MIT","dependencies":{"@2012mjm/telegram-tl-node":"^0.12.4","bigint-node":"1.0.4","get-flow":"^0.3.0","get-log":"^1.1.5","jsbn":"0.0.0","node-cryptojs-aes":"github:enricostara/node-cryptojs-aes"},"devDependencies":{"codeclimate-test-reporter":"0.1.0","coveralls":"2.11.3","gulp":"3.9.0","gulp-jshint":"1.11.2","gulp-mocha":"2.1.3","http-browserify":"github:enricostara/http-browserify","istanbul":"0.3.17","mocha":"2.2.5","mocha-better-spec-reporter":"1.1.2","mocha-lcov-reporter":"0.0.2","requirish":"^0.3.0","should":"7.0.2","zuul":"1.15.2"},"main":"./lib/mtproto","engines":{"node":">0.10.30"},"scripts":{"test":"DEBUG=-mocha*,-TypeBuilder,* ./node_modules/gulp/bin/gulp.js test","example":"DEBUG=-mocha*,-TypeBuilder,* ./node_modules/gulp/bin/gulp.js example","coveralls":"DEBUG=-mocha*,* istanbul cover ./node_modules/gulp/bin/gulp.js cover && cat ./coverage/lcov.info | coveralls && codeclimate < ./coverage/lcov.info && rm -rf ./coverage","zuul":"zuul -- ./test/net/http-connection.test.js ./test/security/** ./test/message/** ./test/auth/** ./test/*.js"},"gitHead":"0938df574e00afa221008237e280f1c88d7b95bb","_id":"@2012mjm/telegram-mt-node@0.9.16","_shasum":"73727f95c6dcf76065f3e111ff61015158d0a5e0","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.6.0","_npmUser":{"name":"2012mjm","email":"2007mjm@gmail.com"},"dist":{"shasum":"73727f95c6dcf76065f3e111ff61015158d0a5e0","tarball":"https://registry.npmjs.org/@2012mjm/telegram-mt-node/-/telegram-mt-node-0.9.16.tgz","integrity":"sha512-FomQq2zzHBbazLOrVAvwb717PumJ9VsYfJqsdkWbI9v+2HfUaq2P2kgch5uY9c/a+L168tP5pVDCrSYalnblQw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF/RAjgDsOXWDPSZmpwKxkoctVaKy/rLAGnZhdJPBMo8AiEAntqhl1+t1uU0x3c1Hh5uOQ4ZcMeeWCNHDTBaVG0aogw="}]},"maintainers":[{"name":"2012mjm","email":"2007mjm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/telegram-mt-node-0.9.16.tgz_1495277952926_0.49654042231850326"}}},"readme":"# Deprecation Notice\n**Don’t use this for new projects.**  \n**[telegram-mtproto](https://github.com/zerobias/telegram-mtproto) is much more advanced and has a better API.**\n\n**Also check [treact](https://github.com/goodmind/treact). My attempt to write Telegram client in React.js**\n\n<s>@goodmind/telegram-mt-node</s>\n=================================\n[![npm version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coverage-image]][coverage-url] [![Climate Status][climate-image]][climate-url]\n[![Sauce Test Status][sauce-image]][sauce-url]\n\n\n**Telegram Mobile Protocol** [(MTProto)](https://core.telegram.org/mtproto) unofficial library in pure **javascript** on the Node.js platform\n\n## About MTProto..\n\n**MTProto** is the [Telegram Messenger](http://www.telegram.org ) protocol \n_\"designed for access to a server API from applications running on mobile devices\"_.\n\nThe Mobile Protocol is subdivided into three components ([from the official site](https://core.telegram.org/mtproto#general-description)):\n\n - High-level component (API query language): defines the method whereby API \n queries and responses are converted to binary messages.\n \n - Cryptographic (authorization) layer: defines the method by which messages \n are encrypted prior to being transmitted through the transport protocol.      \n \n - Transport component: defines the method for the client and the server to transmit \n messages over some other existing network protocol (such as, http, https, tcp, udp).\n\n\n\n## telegram-mt-node in short..\n\nThe **telegram-mt-node** library implements the **Mobile Protocol** and provides the following features:\n\n - Both **TCP** and **HTTP connections** implemented in the transport layer\n \n - A cipher implementation for **AES and RSA encryption** in the security layer\n \n - Both **plain-text and encrypted message** to communicate data with the server\n \n - **Diffie-Hellman key exchange** supported by the **prime factorization** function implemented in the security layer\n \n - **MTProto TL-Schema** compilation as **javascript classes and functions** via [**@goodmind/telegram-tl-node**](https://github.com/goodmind/telegram-tl-node) dependency\n\n<img src=\"https://raw.githubusercontent.com/enricostara/telegram.link/master/telegram.link.png\" \n    width=\"20\" /> [**@goodmind/telegram.link**](http://github.com/goodmind/telegram.link)  main project depends by this library.\n\n## Installation\n\n```bash\n$ git clone --branch=master git://github.com/goodmind/telegram-mt-node.git\n$ cd telegram-mt-node\n$ npm install\n```\n\n## Unit Testing \n\n```bash\n$ npm test\n```\n\n## Example\n\nYou can find an example where take an auth key on the fly and ask what is the nearest DataCenter:\n```bash\n$ npm run-script example\n```\n\n## Dependencies\n\n- [@goodmind/telegram-tl-node](https://github.com/goodmind/telegram-tl-node): a Telegram TypeLanguage library\n\n- [get-log](https://github.com/enricostara/get-log): a Node.js Logging Utility, easy to use and ready for production.\n\n- [jsbn](https://github.com/andyperlitch/jsbn): a portable implementation of large-number math in pure JavaScript, \nenabling public-key crypto and other applications on desktop and mobile browsers.\n\n- [bigint-node](https://github.com/cwacek/bigint-node): the Leemon Baird BigInteger javascript library ported to Node.js\n\n- [node-cryptojs-aes](https://github.com/chengxianga2008/node-cryptojs-aes): A minimalist port of cryptojs javascript \nlibrary to node.js, that supports AES symmetric key cryptography \n\n## License\n\nThe project is released under the [Mit License](./LICENSE) \n\n[npm-url]: https://www.npmjs.org/package/@goodmind/telegram-mt-node\n[npm-image]: https://badge.fury.io/js/%40goodmind%2Ftelegram-mt-node.svg\n\n[travis-url]: https://travis-ci.org/goodmind/telegram-mt-node\n[travis-image]: https://travis-ci.org/goodmind/telegram-mt-node.svg?branch=master\n\n[coverage-url]: https://coveralls.io/r/enricostara/telegram-mt-node?branch=master\n[coverage-image]: https://img.shields.io/coveralls/enricostara/telegram-mt-node.svg\n\n[climate-url]: https://codeclimate.com/github/enricostara/telegram-mt-node\n[climate-image]: https://codeclimate.com/github/enricostara/telegram-mt-node/badges/gpa.svg\n\n[sauce-url]: https://saucelabs.com/u/telegram-mt-node\n[sauce-image]: https://saucelabs.com/browser-matrix/telegram-mt-node.svg\n","maintainers":[{"name":"2012mjm","email":"2007mjm@gmail.com"}],"time":{"modified":"2022-06-12T14:09:51.153Z","created":"2017-05-20T10:59:13.960Z","0.9.16":"2017-05-20T10:59:13.960Z"},"homepage":"https://githubcom/goodmind/telegram-mt-node","keywords":["telegram","mt","mtproto","mobile","protocol","library"],"repository":{"type":"git","url":"git://github.com/goodmind/telegram-mt-node.git"},"author":{"name":"Enrico Stara","email":"enrico.stara@gmail.com"},"bugs":{"url":"https://github.com/goodmind/telegram-mt-node/issues"},"license":"MIT","readmeFilename":"README.md"}