This Is Advanced Version Of Old Radio Player, An Telegram Bot to Play Radio/Music in Channel or Group Voice Chats.
An Telegram Bot to Play Nonstop 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 AsmSafone Channel & Music in SafoTheBot Group.
API_ID
: Get it from my.telegram.orgAPI_HASH
: Get it from my.telegram.orgBOT_TOKEN
: Get it from @BotfatherSESSION_STRING
: Generate it from @genStr robot or
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. Here is Some Live Streaming Links.CHAT
with given STREAM_URL
after deploy./play
to start playing it in the voice chat./song
command to the bot./help
to know about other commands & its usage.$ 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
RadioPlayerV2, Telegram Voice Chat Bot
Copyright (C) 2021 Asm Safone <https://t.me/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/>