Git Product home page Git Product logo

radioplayerv2-1's Introduction

Telegram Radio Player V2

An Telegram Bot to Play Radio/Music in Channel or Group Voice Chats.

Special Features

- Playlist, queue, 24x7 radio stream
- Loop one track when there is only one track in the playlist
- Automatically downloads audio for the first two tracks in the playlist to ensure smooth playing
- Show current playing position of the audio
- Control with buttons and commands
- Download songs from youtube as audio

Deploy to Heroku (The Easy Way)

Deploy To Heroku


Deploy

Heroku Vars

1. `API_ID` : Get From @MT_MyTelegramOrg_Bot
2. `API_HASH` : Get From @MT_MyTelegramOrg_Bot
3. `BOT_TOKEN` : Get it From @Botfather
4. `SESSION_STRING` : Generate From [MT_Session_Replit](https://replit.com/@CYBERDUDE3/String-Gen-1#main.py).
5. `CHAT` : ID of Channel/Group where the bot plays Music/Radio.
6. `LOG_GROUP` : Group to send Playlist, if CHAT is a Group.
7. `ADMINS` : ID of users who can use admin commands.
8. `STREAM_URL` : Stream URL of radio station to stream when the bot starts or with /radio command.
  • Enable the worker after deploy the project to Heroku.
  • Bot will starts radio automatically in given CHAT with given STREAM_URL after deploy.
  • 24x7 Music even if heroku restarts, radio stream restarts automatically.
  • To play a song just send the audio file to Bot or reply to an audio with /play to start playing it in the voice chat.
  • To download audio you can use /song command to the bot.
  • Use /help to know about other commands & its usage.

Requirements

- Python 3.6 or higher.
- A
  Telegram API key πŸ‘‰ https://docs.pyrogram.org/intro/quickstart#enjoy-the-api
  and a Telegram account.
- [FFmpeg Python πŸ‘‰ https://www.ffmpeg.org/
- Telegram String Session πŸ‘‰ http://t.me/MT_UserSession_BoT of the account.
- Userbot Needs To Be Admin In The Channel or Group.
- Must Start A Voice Chat In Channel/Group Before Running The Bot.

Run On VPS (The Hard Way)

$ git clone πŸ‘‰ https://github.com/DarkAngel1234-tech/RadioPlayerV2
$ cd RadioPlayerV2
$ sudo apt-get install ffmpeg
$ pip3 install -U pip
$ pip3 install -U -r requirements.txt
```
Edit **config.py** with your own values.

$ python3 main.py

License

RadioPlayerV2, Telegram Voice Chat Userbot
Copyright (C) 2021  Asm Safone

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/

credit


πŸ‘¨β€πŸ’ΌAsm Safone - Developer πŸ‘¨β€πŸ’»DarkAngel1234-tech πŸ‘¨β€πŸ’»Mrk YT



Open Source? Yes! Ask Me Anything ! Report Bugs! Join Channel !

Join Our Telegram Group For Support/Assistance And Our Channel For Updates.

Report Bugs, Give Feature Requests There..
Do Fork And Star The Repository If You Liked It.

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.