Giter Club home page Giter Club logo

paper-plane's Introduction

Paper Plane

TDLib bindings for Node.js.

Paper Plane is a package for easing the interaction with TDLib through Node.js. It's completely asynchrounus, blazing fast and reliable, so you can build a Telegram client with no worries of MTProto or Telegram API.

Installation

npm i -S tg-paper-plane

Note: TDlib library (libtdjson.so) must be installed on your machine.

Example

A fully functioning but simple client is available at example/ directory. Before using it, make sure you have an app in Telegram Development Tools. Set TD_API_ID and TD_API_HASH environment variables. You can get these for your own from Telegram account tools.

Methods

TDlib has a complete documentation of methods, types and everything else in the library.

Changelog

v0.0.9

  • Added a Promise.race for async queries, so it won't return continuous Time out responses.

v0.0.8

  • fetch function now handles errors correctly.

v0.0.7

  • Fixed a minor typo with this.fetching which caused the whole client to stop working :)

v0.0.6

  • Added encryptionKey parameter to class constructor, so the class can be used for encrypted databases, too. Also, authorizationWaitEncryptionKey is automatically handled by Paper Plane.

v0.0.5

  • Call this.resolver when an AuthReady received from TDlib.

v0.0.4

  • Removed Babel from dependencies,
  • Set Node.js required version to >=8.0.0,
  • Added JSDoc comments for each function in class,
  • Updated example,
  • and squished a few bugs.

paper-plane's People

Contributors

par6n avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

pablobinotto

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.