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

tgcallsjs

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tgcallsjs

An operative library for Telegram calls and a tgcalls helper.

  • 1.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 03 Dec 2023

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