MCPcopy Index your code
hub / github.com/AsmSafone/VideoPlayerBot

github.com/AsmSafone/VideoPlayerBot @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
22 symbols 180 edges 13 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Telegram Video Player Bot Mentioned in Awesome

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 Telegram Bot By @AsmSafone To Stream Videos in Telegram Voice Chat.

Main Features

  • Supports Live Streaming.
  • Supports YouTube Streaming.
  • Supports Live Radio Streaming.
  • Supports Video Files Streaming.
  • Supports YouTube Live Streaming.
  • User Account Protection (PM Guard)

Deploy Own Bot

Railway (Recommended)

Heroku (Don't Complain)

Commands (Set In Botfather)

start - Start The Bot
help - Show Help Message
play - Start Audio Streaming
stream - Start Video Streaming
pause - Pause The Current Stream
resume - Resume The Paused Stream
endstream - Stop Streaming & Left VC

Config Vars

  1. API_ID : User Account Telegram API_ID, get it from my.telegram.org
  2. API_HASH : User Account Telegram API_HASH, get it from my.telegram.org
  3. BOT_TOKEN : Your Telegram Bot Token, get it from @Botfather XD
  4. SESSION_STRING : Pyrogram Session String of User Account, get it from @genStr robot or genStr
  5. ASSISTANT_NAME : Your Video Player's assistant username without @.
  6. SUPPORT_GROUP : Support Group username without @ [Leave this if you don't have one]
  7. UPDATES_CHANNEL : Updates Channel username without @ [Leave this if you don't have one]
  8. SUDO_USERS : ID of Users who can use Admins commands (for multiple users seperated by space)
  9. REPLY_MESSAGE : A reply to those who message the USER account in PM. Leave it blank if you do not need this feature.

Requirements

Self Host

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

License

VideoPlayerBot, Telegram Video 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

Core symbols most depended-on inside this repo

set
called by 1
assets/admins.py
get_administrators
called by 1
helpers/admins.py
get
called by 0
assets/admins.py
errors
called by 0
helpers/decorators.py
decorator
called by 0
helpers/decorators.py
authorized_users_only
called by 0
helpers/decorators.py
sudo_users_only
called by 0
helpers/decorators.py
search
called by 0
plugins/inline.py

Shape

Function 22

Languages

Python100%

Modules by API surface

plugins/video.py9 symbols
helpers/decorators.py4 symbols
plugins/private.py2 symbols
plugins/audio.py2 symbols
assets/admins.py2 symbols
plugins/nopm.py1 symbols
plugins/inline.py1 symbols
helpers/admins.py1 symbols

For agents

$ claude mcp add VideoPlayerBot \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact