Tuktuky_Music
Telegram bot to stream videos in telegram voicechat for both groups and channels. Supports live strams, YouTube videos and telegram media.
Config Vars:
Mandatory Vars
API_ID
: Get From my.telegram.orgAPI_HASH
: Get from my.telegram.orgBOT_TOKEN
: @BotfatherSESSION_STRING
: Generate From hereCHAT
: ID of Channel/Group where the bot plays Music.
Optional Vars:
LOG_GROUP
: Group to send Playlist, if CHAT is a Group()ADMINS
: ID of users who can use admin commands.STARTUP_STREAM
: This will be streamed on startups and restarts of bot. You can use either any STREAM_URL or a direct link of any video or a Youtube Live link. You can also use YouTube Playlist.Find a Telegram Link for your playlist from PlayList Dumb or get a PlayList from PlayList Extract. The PlayList link should in formhttps://t.me/DumpPlaylist/xxx
.REPLY_MESSAGE
: A reply to those who message the USER account in PM. Leave it blank if you do not need this feature.ADMIN_ONLY
: PassY
If you want to make /play command only for admins ofCHAT
. By default /play is available for all.
Requirements
- Python 3.8 or Higher.
- FFMpeg.
Deploy to Heroku
Deploy to Railway
Railway.app may ban your railway account if you tried to play DMCA contents. Its is hereby forewarned that we wont be responsible for any loss caused to you. Proceed at your own risk.
Deploy to VPS
git clone https://github.com/tuktukyrahman/Tuktuky_Music
cd Tuktuky_Music
pip3 install -r requirements.txt
#
python3 main.py
Features
- Playlist, queue.
- Supports Play from Youtube Playlist.
- Change VoiceChat title to current playing song name.
- Supports Live streaming from youtube
- Play from telegram file supported.
- Starts Radio after if no songs in playlist.
- Automatically downloads audio for the first two tracks in the playlist to ensure smooth playing
- Automatic restart even if heroku restarts.
- Support exporting and importing playlist.
Note
Kanging this codes and and editing a few lines and releasing a V.x of your repo wont make you a Developer. Fork the repo and edit as per your needs.
LICENSE
CREDITS
- py-tgcalls
- Dan for Pyrogram