Giter VIP home page Giter VIP logo

tgvcplayerbot's Introduction

Telegram VC Player Bot

Play any song directly into your group voice chat.

Official Bot : TgVCPlayerBot | Discussion Group : VoiceChat Music Player Support

Checkout AutoForwarder Bot

Requirements

  1. Telegram Api Id and Hash [ Get it from my.telegram.org ]
  2. A Telegram Bot Token. Get it from @botfather.
  3. Python 3.6+
  4. ffmpeg [ How to Install ? ]

Deploying To Heroku

  1. Get your telegram API ID and API HASH from my.telegram.org and the BOT TOKEN from @botfather.
  2. Generate your telegram session string using the Run on Repl button below (Click on run after opening the url below) or use the generateSession.py file.
  • Run on Repl.it
  1. Clcik on the Deploy to Heroku button below. Fill in the required fields on the website that opens.
  • Deploy

  • Deploy+To+Railway

  1. Add the bot to your group and send the commands to start using the VCPlayer Bot :)

Steps To Setup

  1. Install pyrogram for generatong session string : pip3 install -U pyrogram
  2. Generate your telegram session string. Run python3 generateSession.py
  3. Rename .env copy to .env and fill all the required/mandatory fields in there.

Steps to Run

  1. After the setup is done.
  2. Install ffmpeg : sudo apt-get install ffmpeg
  3. Install the requirements : pip3 install -U -r requirements.txt
  4. Run the service by :
  • Run python3 main.py --help for available settings.
  • Or Run python3 main.py -env prod to use default settings

Environmental Variables

Starting from command line:

  • python3 main.py -env prod|local -mode single|multiple -autoleave on|off

Available env varibales

  • Mandataory SESSION_NAME : Pyrogram session string.
  • Mandataory BOT_TOKEN : A bot token from @BotFather.
  • Mandataory BOT_NAME : Your MusicPlayer Bot Name.
  • Mandataory API_ID : App ID from my.telegram.org/apps.
  • Optional API_HASH : App hash from my.telegram.org/apps.
  • Optional SUDO_USERS : List of user IDs counted as admin everywhere (separated by space).
  • Optional DURATION_LIMIT : Max audio duration limit for downloads (minutes).

Features

Command Description
/start , /help Lists the available commands.
/play song_name Starts the song in the voice chat.
/skip Skips the current song.
/end End the voice player.

Developer

Mr Nitric

For any issues/questions please contact here

Pull Requests are more than welcome.

tgvcplayerbot's People

Contributors

mrnitric avatar brokencobra avatar

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.