GithubHelp home page GithubHelp logo

callsmusic / callsmusic2 Goto Github PK

View Code? Open in Web Editor NEW
61.0 1.0 112.0 115 KB

[UNMAINTAINED] Stream audio in Telegram calls using GramJS and tgcallsjs

License: GNU Affero General Public License v3.0

Shell 2.16% Dockerfile 1.15% JavaScript 96.55% Procfile 0.15%
pytgcalls telegram async music telegram-bot telegram-userbot telegram-mtproto mtproto ffmpeg heroku

callsmusic2's Introduction

Notice

This project is unmaintained. If you’re looking for an alternative, see Remix.

Calls Music 2 — Stream audio in Telegram calls using GramJS and tgcallsjs

Requirements

This bot needs a Linux system, Node JS version 15 or newer with the packages specified in the package.json, ffmpeg, Google Chrome or Chromium to work.

Deployment

Config

  1. Copy example.env to .env and fill it with your credentials.
  2. Install the required Node JS packages:
    npm install
  3. Run:
    npm start

Docker

  1. Build:
    docker build -t musicplayer .
  2. Run:
    docker run --env-file .env musicplayer

Heroku

Deploy to Heroku

  • You can generate a string session here.

Commands

Command Usage
/play play the replied audio file
/pause pause the audio stream
/resume resume the audio stream
/skip skip the current audio stream
/stop clear the queue and remove the userbot from the call

License

GNU Affero General Public License v3.0

Read more

Credits

callsmusic2's People

Contributors

rojvv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

callsmusic2's Issues

How to get started?

I deployed this using heraku. But still no reply from the bot. l'm pretty sure I used the correct variables

Can't add song into queue

After play a song when I want to add a new song to queue via /play, it gives me this: TypeError: put() takes 1 positional argument but 2 were given

string

from where i can get string section?

Module Not Found @ Docker

Pyrogram v1.1.13, Copyright (C) 2017-2021 Dan <https://github.com/delivrance>
Licensed under the terms of the GNU Lesser General Public License v3 or later (LGPLv3+)

node:internal/modules/cjs/loader:927
  throw err;
  ^

Error: Cannot find module 'socket.io-client'
Require stack:
- /usr/local/lib/python3.7/dist-packages/pytgcalls/js/core.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:924:15)
    at Function.Module._load (node:internal/modules/cjs/loader:769:27)
    at Module.require (node:internal/modules/cjs/loader:996:19)
    at require (node:internal/modules/cjs/helpers:92:18)
    at Object.<anonymous> (/usr/local/lib/python3.7/dist-packages/pytgcalls/js/core.js:1:12)
    at Module._compile (node:internal/modules/cjs/loader:1092:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1121:10)
    at Module.load (node:internal/modules/cjs/loader:972:32)
    at Function.Module._load (node:internal/modules/cjs/loader:813:14)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/usr/local/lib/python3.7/dist-packages/pytgcalls/js/core.js' ]
}

string session

pls include the string session repl link to this repo ,without that , i am help less to deploy the bot

invalid syntax

i dont know this, but it give me error

root@vultr:~/cm# python3 -m callsmusic
Pyrogram v1.2.8, Copyright (C) 2017-2021 Dan <https://github.com/delivrance>
Licensed under the terms of the GNU Lesser General Public License v3 or later (LGPLv3+)

Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/root/cm/callsmusic/__main__.py", line 31, in <module>
    bot.start()
  File "/usr/local/lib/python3.6/dist-packages/pyrogram/sync.py", line 56, in async_to_sync_wrap
    return loop.run_until_complete(coroutine)
  File "/usr/lib/python3.6/asyncio/base_events.py", line 484, in run_until_complete
    return future.result()
  File "/usr/local/lib/python3.6/dist-packages/pyrogram/methods/utilities/start.py", line 68, in start
    await self.initialize()
  File "/usr/local/lib/python3.6/dist-packages/pyrogram/methods/auth/initialize.py", line 44, in initialize
    self.load_plugins()
  File "/usr/local/lib/python3.6/dist-packages/pyrogram/client.py", line 715, in load_plugins
    module = import_module(module_path)
  File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 674, in exec_module
  File "<frozen importlib._bootstrap_external>", line 781, in get_code
  File "<frozen importlib._bootstrap_external>", line 741, in source_to_code
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "<fstring>", line 1
    (await queues.put(message.chat.id, file_path=file_path))
                ^
SyntaxError: invalid syntax

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.