Skip to content

Bot for radio broadcasting in Telegram channels

License

Notifications You must be signed in to change notification settings

evgenii-m/TelegaRadio

 
 

Repository files navigation

Telega Radio Broadcasting Application

The original implementation is taken from AsmSafone/RadioPlayerV3

Special Features

  • Radio broadcasting to Telegram channels by stream URL or local playlist (from files)
  • Bot interface for playlist managment

Initialize Telegram session with Pyrogram

Pyrogram session initialization required for streaming to Telegram channels feature, that allowed only for userbot (Telegram user account). Run script pyrogram_session_gen.py and follow instructions.

Deploy

You can deploy application in VDS/VPS or local machine by using Docker. First create .env file in source root based on .env.sample file. Then run this script from project source root.

$ pip3 install -r requirements.txt
$
$

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
  4. SESSION_NAME : Name of session generated by pyrogram_session_gen.py
  5. CHAT_ID : ID of Channel/Group to play radio.
  6. CHAT_NAME : Name (started with @) of Channel/Group to play radio.
  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.

Requirements

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

Credits

About

Bot for radio broadcasting in Telegram channels

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.5%
  • Dockerfile 1.4%
  • Other 1.1%