Skip to content

A Powerfull FM Bot By SDBOTs Radio Player this bot can playing 24 hours Fm Specially thanks for @AsmSafone ❤️

License

Notifications You must be signed in to change notification settings

Sadew451/RadioPlayer

Repository files navigation

Telegram Radio Player V2

GitHub

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

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

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)

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

Heroku Vars:

  1. API_ID : Get From my.telegram.org
  2. API_HASH : Get From my.telegram.org
  3. BOT_TOKEN : Get it From @Botfather
  4. SESSION_STRING : Generate From @SDStringSessonGenbot.
  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 @TheNatsukiBot or /song command to the bot.
  • Use /help to know about other commands & its usage.

Requirements

  • Python 3.6 or higher.
  • A Telegram API key and a Telegram account.
  • FFmpeg Python
  • Telegram String Session 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/AsmSafone/RadioPlayerV2
$ cd RadioPlayerV2
$ sudo apt-get install python3-pip ffmpeg
$ pip3 install -U pip
$ pip3 install -U -r requirements.txt

Edit config.py with your own values.

$ python3 main.py

Credits

About

A Powerfull FM Bot By SDBOTs Radio Player this bot can playing 24 hours Fm Specially thanks for @AsmSafone ❤️

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published