An Advanced Telegram Bot to Play Radio & Music in Voice Chat. This is Also The Source Code of The Bot Which is Being Used For Playing Radio in @AsmSafone Channel ❤️

Overview

Telegram Radio Player V3 Mentioned in Awesome Telegram Calls

GitHub Repo stars GitHub forks GitHub issues GitHub closed issues GitHub pull requests GitHub closed pull requests GitHub contributors GitHub repo size GitHub commit activity GitHub Bot Updates Bot Support

An Advanced Telegram Bot to Play Nonstop Radio/Music/YouTube Live 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.

Special Features

  • Playlist, queue, 24x7 radio stream
  • Supports Live streaming from youtube
  • Starts Radio after if no songs in playlist
  • Automatic playback even if heroku restarts
  • Show current playing position of the audio
  • Control with buttons and commands
  • Download songs from youtube as audio
  • Change Voice chat title to current playing song name
  • Automatically downloads audio for the first two tracks in the playlist to ensure smooth playing

Deploy to Heroku

Deploy to Railway

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

Config Vars:

  1. API_ID : Get it from my.telegram.org
  2. API_HASH : Get it from my.telegram.org
  3. BOT_TOKEN : Get it from @Botfather
  4. SESSION_STRING : Generate from @genStr robot or genStr
  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 or a youtube live video to stream when the bot starts or with /radio command. Here is Some Live Streaming Links.
  9. MAXIMUM_DURATION : Maximum duration of song to play.(Optional)
  10. REPLY_MESSAGE : A reply to those who message the USER account in PM. Leave it blank if you do not need this feature.
  11. ADMIN_ONLY : Pass 'True' If you want to make /play commands only for admins of CHAT. By default /play is available for all.
  • 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 use /play as a reply to audio file or a youtube link or use /play [song name].
  • To download audio you can use @SafoneMusicBot or /song command to the bot.
  • Use /help to know about other commands & their 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 An Admin In The Channel or Group.
  • Must Start A Voice Chat In Channel/Group Before Running The Bot.

Run On VPS

$ git clone https://github.com/AsmSafone/RadioPlayerV3
$ cd RadioPlayerV3
$ sudo apt-get install python3-pip ffmpeg
$ pip3 install -U pip
$ pip3 install -r requirements.txt
# <create variables appropriately>
$ python3 main.py

License

RadioPlayerV3, Telegram Voice Chat Bot
Copyright (c) 2021  Asm Safone <https://github.com/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/>

Credits

Special Thanks To All Contributors & Lib Owners!

Comments
  • GroupCallNotFoundError

    GroupCallNotFoundError

    Traceback (most recent call last): File "main.py", line 28, in from utils import mp, USERNAME, FFMPEG_PROCESSES File "/root/RadioPlayerV3/utils.py", line 28, in from pytgcalls.exceptions import GroupCallNotFoundError ImportError: cannot import name 'GroupCallNotFoundError'

    Python 3.6

    opened by tapatianbeast 3
  • Update private.py (Sourcery refactored)

    Update private.py (Sourcery refactored)

    Pull Request #12 refactored by Sourcery.

    Since the original Pull Request was opened as a fork in a contributor's repository, we are unable to create a Pull Request branching from it.

    To incorporate these changes, you can either:

    1. Merge this Pull Request instead of the original, or

    2. Ask your contributor to locally incorporate these commits and push them to the original Pull Request

      Incorporate changes via command line
      git fetch https://github.com/AsmSafone/RadioPlayerV3 pull/12/head
      git merge --ff-only FETCH_HEAD
      git push

    NOTE: As code is pushed to the original Pull Request, Sourcery will re-run and update (force-push) this Pull Request with new refactorings as necessary. If Sourcery finds no refactorings at any point, this Pull Request will be closed automatically.

    See our documentation here.

    Run Sourcery locally

    Reduce the feedback loop during development by using the Sourcery editor plugin:

    Help us improve this pull request!

    opened by sourcery-ai[bot] 1
  • Custom Audio Source

    Custom Audio Source

    For now this bot only support Hardcode or embeded link of Radio Source . Sometimes this method make bot isn't usable when radio source or link are down , and command to play youtube music is doesnt work . so hope you can make it like /radio radiosourceurl like /play command

    opened by deulizealand 1
  • Epsipa2 patch 1 (Sourcery refactored)

    Epsipa2 patch 1 (Sourcery refactored)

    Pull Request #23 refactored by Sourcery.

    Since the original Pull Request was opened as a fork in a contributor's repository, we are unable to create a Pull Request branching from it.

    To incorporate these changes, you can either:

    1. Merge this Pull Request instead of the original, or

    2. Ask your contributor to locally incorporate these commits and push them to the original Pull Request

      Incorporate changes via command line
      git fetch https://github.com/AsmSafone/RadioPlayerV3 pull/23/head
      git merge --ff-only FETCH_HEAD
      git push

    NOTE: As code is pushed to the original Pull Request, Sourcery will re-run and update (force-push) this Pull Request with new refactorings as necessary. If Sourcery finds no refactorings at any point, this Pull Request will be closed automatically.

    See our documentation here.

    Run Sourcery locally

    Reduce the feedback loop during development by using the Sourcery editor plugin:

    Help us improve this pull request!

    opened by sourcery-ai[bot] 1
  • Seems suspicious

    Seems suspicious

    One of the config vars is SESSION_STRING that can only be obtained via the some shady methods. The one with @genStr_robot requires you to follow the developer's telegram channel (which is already kind of meh to be honest) and then asks you to give it your OTP which you shouldn't really tell anyone, they are very clear about that. I'm not saying anything, I'm sure the dev is cool and not trying to scam people, but you can't deny that it seems very suspicious and thus I'd move away from this kind of setup. Maybe there is a way around asking for the second most important thing about your telegram account, idk

    opened by v-gordienko 0
  • Need Some Improvements

    Need Some Improvements

    Bot should automatically leave if voice chat ended otherwise bot unable to login to the voice chat again. Some times bot in mute status but i can see chat title updated with requested song. Restart command not working, Please add config to disable and enable the radio stream. (only player mode)

    This is a very good bot ever i met...I love it

    enhancement 
    opened by lasithdon 1
Releases(Latest)
Owner
SAF ONE
Meh Stupid Gamer BloGGeR YouTuber Geeky Py Coder An Quick LeARneR An Proud BanglaDeshi ❤️
SAF ONE
Lumberjack-bot - A game bot written for Lumberjack game at Telegram platform

This is a game bot written for Lumberjack game at Telegram platform. It is devel

Uğur Uysal 6 Apr 07, 2022
Music bot for playing music on telegram voice chat group.

Somali X Music 🎵 Music bot for playing music on telegram voice chat group. Requirements FFmpeg NodeJS nodesource.com Python 3.8+ or Higher PyTgCalls

Abdisamad Omar Mohamed 4 Dec 01, 2021
Asynchronous RDP/VNC client for Python (GUI)

🚩 This is the public repository of aardwolf, for latest version and updates please consider supporting us through https://porchetta.industries/ AARDW

29 Dec 15, 2022
Discord bot written in discord.py

Orion Discord bot written in discord.py Installation Installation of code is supported for macOS only currently First open the terminal. If incase you

Zeus 3 May 19, 2022
CSUL Discord Bot

Cruzeiro This is the same old bot running on the Discord Server of CSUL, but i've changed the code. It's better now. Discord.py Heroku How i did The b

Operaho 6 Jan 31, 2022
My personal discord bot using discord.py

Rara-chan My personal discord bot that I use for stuff that I find interesting. Features Responds to certain messages ChatBot capabilities NHentai scr

Mikask 3 Nov 06, 2022
A tiktok autoclaimer/sniper used to get og/rare usernames on tiktok.com

TikTok Autoclaimer A tiktok autoclaimer/sniper used to get og/rare usernames on tiktok.com Report Bug · Request Feature Features Asynchronous User fri

dropout 24 Dec 08, 2022
PRNT.sc Image Grabber

PRNTSender PRNT.sc Image Grabber PRNTSender is a script that takes images posted on PRNT.sc and sends them to a Discord webhook, if you want to know h

neox 2 Dec 10, 2021
A pyrogram simple bot for Educational purpose.

A pyrogram simple bot for Educational purpose. To Learn More check at @PyrogramBot or on Documentation Mandatory variables API_ID - Get It From my.tel

SpamShield 10 Dec 06, 2022
Awslogs - AWS CloudWatch logs for Humans™

awslogs awslogs is a simple command line tool for querying groups, streams and events from Amazon CloudWatch logs. One of the most powerful features i

Jorge Bastida 4.5k Dec 30, 2022
Python wrapper for the Sportradar APIs ⚽️🏈

Sportradar APIs This is a Python wrapper for the sports APIs provided by Sportradar. You'll need to sign up for an API key to use the service. Sportra

John W. Miller 39 Jan 01, 2023
The text based version of my App Blocker that I planning on converting to GUI soon.

App-Blocker The text based version of my App Blocker that I planning on converting to GUI soon. Currently I am just uploading the appblocker.py file,

Harsh Raj 0 Sep 13, 2022
A small module to communicate with Triller's API

A small, UNOFFICIAL module to communicate with Triller's API. I plan to add more features/methods in the future.

A3R0 1 Nov 01, 2022
Bot Auto Chess.com

Bot Auto Chess.com Is a suggestion for chess moves on the chess.com platform. The available features are: chess suggestions and moves automatically. i

Tn. Ninja 34 Jan 01, 2023
Technical Test - Python Programmer Grupo Nexxera

Technical Test Nexxera Group Teste Técnico - Grupo de Programadores Python Nexxera 📍 Prepare-se para usar a API Nossa API de transações de contas dig

Raul dos Santos Moraes 1 Mar 16, 2022
Astro Bot With Golang

Astro-Bot Features: Astronomy Picture of the day Horoscope People In Space How we built it Our team was broken, one person didn't do anything the othe

Vaarun Sinha 1 Nov 21, 2021
Save data from Instagram takeout to a SQLite database

instagram-to-sqlite Save data from a Instagram takeout to a SQLite database. Mise En Place git clone https://github.com/gavindsouza/instagram-to-sqlit

gavin 8 Dec 13, 2022
A Telegram Repo For Devs To Controll The Bots Under Maintenance.This Bot Is For Developers, If Your Bot Is Down, Use This Repo To Give Your Dear Subscribers Some Support By Providing Them Response.

Maintenance Bot A Telegram Repo For Devs To Controll The Bots Under Maintenance About This Bot This Bot Is For Developers, If Your Bot Is Down, Use Th

Vɪᴠᴇᴋ 47 Dec 29, 2022
Bitcoin tracker hecho con python.

Bitcoin Tracker Precio del Bitcoin en tiempo real. Script simple hecho con python. Rollercoin RollerCoin es un juego en el que puedes ganar bitcoin (y

biyivi 3 Jan 04, 2022
📷 An Instagram bot written in Python using Selenium on Google Chrome

📷 An Instagram bot written in Python using Selenium on Google Chrome. It will go through posts in hashtag(s) and like and comment on them.

anniedotexe 47 Dec 19, 2022