MihailPreis / TgRadio

Radio server for Telegram groups.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🔊 TgRadio

Radio server for Telegram groups.

Requirements

How to use

  1. Create .env in root:

    SESSION_NAME=<Name of .session file | Default: TgRadio>
    TG_API_ID=<token_id>
    TG_API_HASH=<token_hash>
    TG_PHONE_NUMBER=<you phone number>
    AVAILABLE_GROUPS=<Group IDs separated by commas | Default: without available filter>
    CMD_PREFIX=<Prefix for commands | Default: !>
    

    For get id and hash see this

  2. Create default.raw audio for loop playing if channel not have tracks. use ffmpeg to convert and move output file to root directory.

    $ ffmpeg -i path/to.mp3 -f s16le -ac 2 -ar 48000 -acodec pcm_s16le default.raw
  3. Run server

    $ pip install -r requirements.txt
    $ python TgRadio.py
  4. Add you radio account in group.

  5. Send !help in group for get help.


  • License: © 2021 M.Price.
    See the LICENSE file for license rights and limitations (MIT).

About

Radio server for Telegram groups.

License:MIT License


Languages

Language:Python 100.0%