enricostara / telegram-mt-node

Telegram MTProto library (javascript, node.js)
MIT License
77 stars 25 forks source link

telegram-mt-node

npm version Build Status Coverage Status Climate Status Sauce Test Status

Telegram Mobile Protocol (MTProto) unofficial library in pure javascript on the Node.js platform

About MTProto..

MTProto is the Telegram Messenger protocol "designed for access to a server API from applications running on mobile devices".

The Mobile Protocol is subdivided into three components (from the official site):

telegram-mt-node in short..

The telegram-mt-node library implements the Mobile Protocol and provides the following features:

<img src="https://raw.githubusercontent.com/enricostara/telegram.link/master/telegram.link.png" width="20" /> telegram.link main project depends by this library.

Installation

$ git clone --branch=master git://github.com/enricostara/telegram-mt-node.git
$ cd telegram-mt-node
$ npm install

Unit Testing

$ npm test

Example

You can find an example where take an auth key on the fly and ask what is the nearest DataCenter:

$ npm run-script example

Dependencies

License

The project is released under the Mit License