TG-MusicPlayer

A Telegram Userbot to play Audio and Video songs / files in Telegram Voice Chats.

It’s made with PyTgCalls and Pyrogram

Requirements

  • Python 3.8+
  • FFMPEG
  • Nodejs v16+

Deployment

Heroku

Deploy

Deploy on Railway### Local Deploy

  1. Installing NodeJS

curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt-get install -y nodejs
  1. Installing Dependencies

sudo apt-get install git ffmpeg -y
sudo apt-get install youtube-dl -y
  1. Cloning the Repo

git clone https://github.com/userderdead/tgvc-userbot
cd usermusicbot
  1. Rename example.env to .env and Fill in the Environment Variables

  2. Installing Requirements

pip3 install -U -r requirements.txt
  1. Run the Bot
python3 main.py

Environment Variables

  • API_ID
  • API_HASH
  • SESSION – A Pyrogram String Session. Get one from Here
  • HNDLR – Your Userbot Handler (Default is !)
  • GROUP_MODE – if Value is set to True, Anyone can Play. Set it to False to restrict play access to Sudo Users/Contacts only.

Commands and Usage

  1. Start the Userbot, check if the Userbot is running by !ping.
  2. Commands of this userbot are accessible to and can be used by the Account itself and it’s Contacts.
  3. Check !help for commands.

Credits ✨

GitHub

View Github