Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@airgram/api

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@airgram/api

This repository contains strict typed wrappers for all [TDLib](https://core.telegram.org/tdlib) (1.4.0) methods and classes.

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Wrappers for TDLib API

This repository contains strict typed wrappers for all TDLib (1.4.0) methods and classes.

Differences from the original API:

  • All parameter names are represent in "camelCase".
  • Parameter @type renamed to _.

Installation

# npm
npm install airgram-api

Basic usage

import { apiFactory } from 'airgram-api'

function callApi (method, params) {
    // some function which sends request to TDLib
    return requestToTDLib({
      _: method,
      ...params
    }) 
}

const api = apiFactory(callApi)

// Now you can invoke all TDLib methods
api.getMe().then((response) => {
  console.info(response)
})

License

The source code is licensed under GPL v3. License is available here.

Keywords

FAQs

Package last updated on 20 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc