1.1.0 • Published 5 months ago

tgcalls-gramjs v1.1.0

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

Gram TGCalls Mentioned in Awesome Telegram Calls

An operative library for Telegram calls and a tgcallsjs helper.

Features

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

Installation

npm i tgcalls-gramjs

Example usage with audio

const { GramTGCalls, gramjs } = require("tgcalls-gramjs");

// 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 GramTGCalls(client, "groupusername");
  tg.streamAudio("./audio.mp3");
})();

Docs

The docs can be found here.

Credits

  • Structure inspired from Telethon bridge in MarshalX/tgcalls.
  • Video support by @Laky-64.
  • Latest version with easiness by @PanditSiddharth

inherited: tgcalls -> gram-tgcalls -> tgcalls-gramjs

1.1.0

5 months ago

1.0.0

5 months ago