Skip to content

Shittu-kumar/Player

Repository files navigation

VJ Video Player

Cover Image


Report a Bug | Request Feature

🏚️ About :

VJ Video Player Logo

This bot is as like terabox, mdisk, pdisk etc bot. This bot stream your file or video on website with the help of telegram bot and channel. User can create his account on this bot and can earn money by generating and sharing link. Bot uses telegram cloud (telegram channel) to store file or video. This bot came with site customisation and with quality option.

🌐 See How Bot & Website Look Like

Tap On Me For Demo Bot

Bot Demo Bot Demo Bot Demo Bot Demo Bot Demo Bot Demo Bot Demo

🔧 How To Deploy :

  • Either you could locally host, VPS, Koyeb, Render, Seenode, Heroku or Any where this repo support.

👨‍💻 Click On This Drop-Down And Get More Details


Deploy on Heroku
  • Fork This Repo

  • Click on Deploy Easily

  • Press the below button to Fast deploy on Heroku

    Deploy

  • Go to variables tab for more info on setting up environmental variables.

Deploy To Koyeb
The fastest way to deploy the application is to click the Deploy to Koyeb button below.

Go to https://uptimerobot.com/ and add a monitor to keep your bot alive.

Deploy to Koyeb

Deploy To Render
Use these commands:

• Build Command: pip3 install -U -r requirements.txt

• Start Command: python3 bot.py

Go to https://uptimerobot.com/ and add a monitor to keep your bot alive.

Use these settings when adding a monitor:


render template

Click on the below button to deploy directly to render ↓

Deploy to Render
Deploy To VPS

git clone https://github.com/VJBots/VJ-Video-Player

Install Packages

pip3 install -U -r requirements.txt

Edit info.py with variables as given below then run bot

python3 bot.py

Deploy Locally
git clone https://github.com/VJBots/VJ-Video-Player
cd bot.py
python3 ./venv
. ./venv/bin/activate
pip install -r requirements.txt
python3 bot.py
  • To stop the whole bot, do CTRL+C

  • If you want to run this bot 24/7 on the VPS, follow these steps.

sudo apt install tmux -y
tmux
python3 bot.py
  • now you can close the VPS and the bot will run on it.

Deploy Using Docker

Clone the repository:

git clone https://github.com/VJBots/VJ-Video-Player
cd bot.py

Build own Docker image:

docker build -t file-stream .

Create ENV and Start Container:

docker run -d --restart unless-stopped --name fsb \
-v /PATH/TO/.env:/app/.env \
-p 8000:8000 \
video-player
  • if you need to change the variables in .env file after your bot was already started, all you need to do is restart the container for the bot settings to get updated:
docker restart fsb
Setting Up Things

If you're on Heroku, just add these in the Environmental Variables or if you're Locally hosting, create a file named .env in the root directory and add all the variables there. An example of .env file:

API_ID = 789456
API_HASH = ysx275f9638x896g43sfzx65
BOT_TOKEN = 12345678:your_bot_token
BACKUP_BOT_TOKEN = 12345678:your_backup_bot_token
LOG_CHANNEL = -100123456789
ADMIN = 2719199
MONGODB_URI = mongodb://admin:pass@192.168.27.1
STREAM_LINK = https://your_app_url.com/
LINK_URL = https://your_blogspot_page_link

# Optional
MULTI_TOKEN1 = 12345678:bot_token_multi_client_1
MULTI_TOKEN2 = 12345678:bot_token_multi_client_2
PORT = 8080
Vars And Details

📝 Mandatory Vars :

  • API_ID: API ID of your Telegram account, can be obtained from My Telegram. int
  • API_HASH: API hash of your Telegram account, can be obtained from My Telegram. str
  • ADMIN: Your Telegram User ID, Send /id to @missrose_bot to get Your Telegram User ID int
  • BOT_TOKEN: Telegram API token of your bot, can be obtained from @BotFather. str
  • LOG_CHANNEL: ID of the channel where bot will store file or video as work like telegram cloud int.
  • MONGODB_URI: MongoDB URI for saving User Data and Files List created by user. Watch Video Tutorial str
  • LINK_URL: Blogspot Page Link Url For Permanent Link Feature. Watch Video Tutorial str
  • STREAM_LINK: Your App Url Starting With https and end with / . str

🗼 MultiClient Vars :

  • MULTI_TOKEN1: Add your first bot token. str
  • MULTI_TOKEN2: Add your second bot token. str
  • MULTI_TOKENn: Add your n bot token. (where n is positive integer) str
  • You Can Add More Multi Token As Shown Above.

🪐 Optional Vars :

  • SLEEP_THRESHOLD: Set global flood wait threshold, auto-retry requests under 60s. int
  • SESSION: Name for the Database created on your MongoDB. Defaults to TechVJBot. str
  • PORT: The port that you want your webapp to be listened to. Defaults to 8080. int
How To Use

⚠️ Before using the bot, don't forget to add the bot to the LOG_CHANNEL as an Admin

‍☠️ Bot Commands :

/start      : To check the bot is alive or not.
/quality    : To genrate file or video with quality option.
/account    : To check video plays or link clicks and balance.
/update     : To Update Business Name and Telegram channel link
/withdraw   : To Withdraw the balance through upi, bank etc.
/notify     : To inform user that your payment sended successfully or cancelled the payment. [ADMIN]

🇮🇳 Series On YouTube

  • In Simple These Are Video Tutorial Of How To Create Video Player Website For Free.

❤️ Thanks To :

  • Tech VJ : Coded Every New Features.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages