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.orgAPI_HASH
: Get from my.telegram.orgBOT_TOKEN
: @BotfatherSESSION_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 hereHEROKU_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 video
and 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 True
If 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 False
if you dont want to shuffle playlists. (Configurable through bot if mongodb added.)EDIT_TITLE
: Make it False
if 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 ISTIS_VIDEO_RECORD
: Make it False
if you do not want to record video, and only audio will be recorded.(Configurable through bot if mongodb added.)IS_LOOP
; Make it False
if you do not want 24 / 7 Video Chat. (Configurable through bot if mongodb added.)IS_VIDEO
: Make it False
if you want to use the player as a musicplayer without video. (Configurable through bot if mongodb added.)PORTRAIT
: Make it True
if 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.)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
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.