1.2.2 • Published 1 year ago

tdl-tdlib-addon v1.2.2

Weekly downloads
76
License
MIT
Repository
github
Last release
1 year ago

tdl-tdlib-addon

npm

A Node.js N-API addon that provides bindings to the TDLib's libtdjson shared library.

It is meant to be used with the tdl package.

tdl-tdlib-addon provides TypeScript and Flow typings out of the box.

Installation

$ npm install tdl-tdlib-addon

API

const { TDLib, defaultLibraryFile } = require('tdl-tdlib-addon')

constructor: new TDLib(libraryFile?: string, addonPath?: string)

libraryFile is the filename that will be passed to dlopen or LoadLibraryW on Windows.

By default, libraryFile is tdjson.dll on Windows, libtdjson.dylib on macOS, and libtdjson.so on a different OS. This default value is exported as defaultLibraryFile.

addonPath is ../build/Release/td.node by default. This parameter generally should not be changed.

Examples:

new TDLib()
new TDLib('libtdjson.so')
new TDLib('libtdjson.dylib')
new TDLib('libtdjson.so', '../build/Release/td.node')

For other API see TDLib_API.md in the tdl repository root.

1.2.2

1 year ago

1.2.0

2 years ago

1.2.1

2 years ago

1.1.0

2 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.8.1

3 years ago

0.8.2

3 years ago

0.8.0

3 years ago

0.7.0

5 years ago

0.6.0

5 years ago

0.5.0

5 years ago

0.4.0

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago