Telegram bot to stream videos in telegram voicechat for both groups and channels. Supports live streams, YouTube videos and telegram media. With record stream support, Schedule streams, and many more.
- API_ID: Get From my.telegram.org
- API_HASH: Get from my.telegram.org
- BOT_TOKEN: @Botfather
- SESSION_STRING: Generate From here
- CHAT: ID of Channel/Group where the bot plays Music.
- DATABASE_URI: MongoDB database Url, get from mongodb. This is an optional var, but it is recomonded to use this to experiance the full features.
- HEROKU_API_KEY: Your heroku api key. Get one from here
- HEROKU_APP_NAME: Your heroku apps name.
- FILTERS: Filter the search for channel play. Channel play means you can play all the files in a purticular channel using /cplay command. Current filters are- video document. For searching audio files use- video document audio. for video only search , use- videoand so on.
- 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 form- https://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. (Configurable through bot if mongodb added.)
- ADMIN_ONLY: Pass- TrueIf you want to make /play command only for admins of- CHAT. By default /play is available for all.(Configurable through bot if mongodb added.)
- DATABASE_NAME: Database name for your mongodb database.
- SHUFFLE: Make it- Falseif you dont want to shuffle playlists. (Configurable through bot if mongodb added.)
- EDIT_TITLE: Make it- Falseif you do not want the bot to edit video chat title according to playing song. (Configurable through bot if mongodb added.)
- RECORDING_DUMP: A Channel ID with the USER account as admin, to dump video chat recordings.
- RECORDING_TITLE: A custom title for your videochat recordings.
- TIME_ZONE: Time Zone of your country, by default IST
- IS_VIDEO_RECORD: Make it- Falseif you do not want to record video, and only audio will be recorded.(Configurable through bot if mongodb added.)
- IS_LOOP; Make it- Falseif you do not want 24 / 7 Video Chat. (Configurable through bot if mongodb added.)
- IS_VIDEO: Make it- Falseif you want to use the player as a musicplayer without video. (Configurable through bot if mongodb added.)
- PORTRAIT: Make it- Trueif you want the video recording in portrait mode. (Configurable through bot if mongodb added.)
- DELAY: Choose the time limit for commands deletion. 10 sec by default.
- QUALITY: Customize the quality of video chat, use one of- high,- medium,- low.
- BITRATE: Bitrate of audio (Not recommended to change).
- FPS: Fps of video to be played (Not recommended to change.)
- Python 3.8 or Higher.
- FFMpeg.
git clone https://github.com/subinps/VCPlayerBot
cd VCPlayerBot
pip3 install -r requirements.txt
# install node js
sudo bash install_node.sh
# <Create Variables appropriately (.env [optional])>
python3 main.py- Playlist, queue.
- Zero downtime in playing.
- Supports Video Recording.
- Supports Scheduling voicechats.
- Cool UI for controling the player.
- Customizabe to audio or video.
- Custom quality for video chats.
- 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.
- Automatic restart even if heroku restarts. (Configurable)
- Support exporting and importing playlist.
Kanging this codes and and editing a few lines and releasing a V.x or an alpha, beta , gama branches of your repo wont make you a Developer. Fork the repo and edit as per your needs.
- Laky-64 for py-tgcalls
- Dan for Pyrogram