RUST · N-API · WEBRTC
Stream into Telegram
group calls, from Node.js.
Thread-safe Rust bindings for libntgcalls — the WebRTC engine behind Telegram voice
and video chats. Bring your MTProto client; this handles the media. Works on Node.js and Bun.
$ npm install @arnabxd/ntgcalls-napi # prebuilt binaries · linux · macos · windows
WHY
01
Thread-safe callbacks
Background native WebRTC thread events become event-loop tasks via N-API ThreadsafeFunction — crash-free.
02
Promise-based API
Heavy operations delegated to a Tokio threadpool through safe one-shot synchronization channels.
03
Smart ID mapping
Accepts a number or a bigint for Telegram chat/user IDs interchangeably — no manual conversions.
04
RPATH isolation
Resolves libntgcalls relative to the addon directory — no LD_LIBRARY_PATH needed, on any platform.
NEXT
CREDITS
- ntgcalls — the native C/C++ WebRTC library by the pytgcalls team that this package binds to.
- TgMusicBot by Ashok Shau — referenced for the call lifecycle and signaling flow.