1.0.5 • Published 5 months ago

tgcallsjs v1.0.5

Weekly downloads
-
License
LGPL-3.0-or-later
Repository
github
Last release
5 months ago

TGCallsJs More in Awesome Telegram Calls

An operative library for Telegram calls and a tgcalls helper.

Features

  • Super light & easy-to-use.
  • Smart stream function.
  • Smartest streamAudio function.
  • Native controls: pause, resume, mute, unmute.
  • Call helpers: join, edit, leave.

Installation

npm i tgcallsjs

Example usage with audio

First install ffmpeg in your system otherwise it will generate errors

For windows:

download ffmpeg and set its path in environment variable
https://telegram.me/logicbots/180

for ubuntu:

sudo apt install ffmpeg

like this you can install on other os

Example usase:

const { TGCallsJs, gramjs } = require("tgcallsjs");

// Replace these values with actual values
const apiId = 123456;
const apiHash = "392ykiyourhashhere";
const stringSession = "";

(async () => {
 const client = await gramjs(apiId, apiHash, stringSession);
  console.log(client.session.save()); // use this value in stringSession after 1 time generate
  let tg = new TGCallsJs(client, "groupusername");
  tg.streamAudio("./audio.mp3");
})();

Docs

The docs can be found here.

Credits

inherited: tgcalls -> gram-tgcalls -> tgcallsjs

1.0.5

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago