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 Join Channel : Channel
- 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
API_ID
: Get From my.telegram.orgAPI_HASH
: Get From my.telegram.orgBOT_TOKEN
: Get it From @BotfatherSESSION_STRING
: Generate From @StringSessionGen_Bot.CHAT
: ID of Channel/Group where the bot plays Music/Radio.LOG_GROUP
: Group to send Playlist, if CHAT is a Group.ADMINS
: ID of users who can use admin commands.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 givenSTREAM_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 @SafoneMusicBot or
/song
command to the bot. - Use
/help
to know about other commands & its usage.
- 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.
$ git clone https://github.com/kjeymax/Radiolivestream
$ cd Radiolivestream
$ 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
- Asm Safone [Dev]
- Dash Eclipse [For tgvc-userbot]
- Il'ya [For tgcalls]
- Subin [For bot support]