Giter Site home page Giter Site logo

Telegram Radio Player V3 Mentioned in Awesome Telegram Calls

GitHub Repo stars GitHub forks GitHub issues GitHub closed issues GitHub pull requests GitHub closed pull requests GitHub contributors GitHub repo size GitHub commit activity GitHub Bot Updates Bot Support

An Advanced Telegram Bot to Play Nonstop Radio/Music/YouTube Live in Channel or Group Voice Chats.

This is also the source code of the bot which is being used for playing Radio in AsmSafone Channel & Music in AsmSupport Group.

Special Features

  • Playlist, queue, 24x7 radio stream
  • Supports Live streaming from youtube
  • Starts Radio after if no songs in playlist
  • Automatic playback even if heroku restarts
  • Show current playing position of the audio
  • Control with buttons and commands
  • Download songs from youtube as audio
  • Change Voice chat title to current playing song name
  • Automatically downloads audio for the first two tracks in the playlist to ensure smooth playing

Deploy to Heroku

Note: First Fork The Repo Then Click On Deploy To Heroku Button!

Deploy to Railway

NOTE: Make Sure You Have Started A Voice Chat In Your Channel/Group Before Deploying!

Config Vars:

  1. API_ID : Get it from https://my.telegram.org/apps
  2. API_HASH : Get it from https://my.telegram.org/apps
  3. BOT_TOKEN : Get it from @Botfather XD
  4. SESSION_STRING : Generate from @genStr robot or genStr
  5. CHAT_ID : ID of Channel/Group where the bot plays Music/Radio.
  6. LOG_GROUP : ID of Group to send Playlist, if CHAT_ID is a Group.
  7. AUTH_USERS : ID of Auth Users who can use Admin commands. (for multiple users seperated by space)
  8. STREAM_URL : Stream URL of radio station or a youtube live video to stream when the bot starts or with /radio command. Here is Some Live Streaming Links.
  9. MAXIMUM_DURATION : Maximum duration of song to play.(Optional)
  10. REPLY_MESSAGE : A reply to those who message the USER account in PM. Leave it blank if you do not need this feature.
  11. ADMIN_ONLY : Pass 'True' If you want to make /play commands only for admins of CHAT. By default /play is available for all.
  12. HEROKU_API_KEY: Your Heroku api key. Get it from here
  13. HEROKU_APP_NAME: Name of your Heroku app if deploying to heroku.
  • Enable the worker after deploy the project to Heroku.
  • Bot will starts radio automatically in given CHAT_ID with given STREAM_URL after deploy.
  • 24x7 Music even if heroku restarts, radio stream restarts automatically.
  • To play a song use /play as a reply to audio file or a youtube link or use /play [song name].
  • To download audio you can use @SafoneMusicBot or /song command to the bot.
  • Use /help to know about other commands & their usage.

Requirements

  • Python 3.6 or higher.
  • Telegram API Key
  • FFmpeg Python
  • Telegram String Session of the account.
  • User Accounts Needs To Be An Admin In The Channel or Group.
  • Must Start A Voice Chat In Channel/Group Before Running The Bot.

Run On VPS

$ git clone https://github.com/AsmSafone/RadioPlayerV3
$ cd RadioPlayerV3
$ sudo apt install git curl python3-pip ffmpeg -y
$ pip3 install -U pip
$ pip3 install -r requirements.txt
# <create .env variables appropriately>
$ python3 main.py

License

RadioPlayerV3, Telegram Voice Chat Bot
Copyright (c) 2021  Asm Safone <https://github.com/AsmSafone>

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/>

Credits

Mohab 3dly's Projects

3dly159 icon 3dly159

Config files for my GitHub profile.

cbmusicbot icon cbmusicbot

CBMusicBot is a telegram music bot project, allow you to play music on voice chat group telegram.

musicplayer icon musicplayer

Telegram Bot to play music in VoiceChat with Channel Support and autostarts Radio.

nafzly icon nafzly

Payment Helper of Payment Gateways ( PayPal - Paymob - Fawry - Thawani - WeAccept - Kashier - Hyperpay - Tap - Opay - Paytabs - Vodafone Cash - Orange Money - Meza Wallet - Etisalat Cash - Binance - Payeer - PerfectMoney - NowPayments)

telethon-music icon telethon-music

A Telegram Music bot Based on Telethon Library. Powerfull And High Quality Sounds. First Awesome Code Based On Telethon using py-tgcalls and yt-dlp.

vcplaybot icon vcplaybot

Telegram Group Music Bot Groups Music allows you to play music in your groups.

veezmusic icon veezmusic

veez music is a telegram music bot project, allow you to play music on voice chat group telegram.

video-stream icon video-stream

video stream is a telegram bot project for streaming a video and music trought the new telegram group video chat.

yukkimusicbot icon yukkimusicbot

Telegram Group Calls Streaming bot with some useful features, written in Python with Pyrogram and Py-Tgcalls. Supporting platforms like Youtube, Spotify, Resso, AppleMusic, Soundcloud and M3u8 Links.

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.