Install docker on your VPS. See official Docker Docs.
After installing docker follow the below steps.
- Clone the repo and change directory to streamextract
git clone https://github.com/pachax001/Stream-Extract-Bot.git streamextract/ && cd streamextract
2.Rename sample_config.env to config.env and fill config.env
cp sample_config.env config.env
Edit config.env
nano config.env
- After filling and saving config.env type this command in terminal and press enter.
sudo docker compose up
Added /log command to retireve log file of the bot.
Added /restart command to restart and update bot from repo.
- To stop docker container
sudo docker compose down
- To delete stopped containers.
sudo docker system prune -a
-
BOT_TOKEN - Get bot token from @BotFather
-
APP_ID - From my.telegram.org (or @UseTGXBot)
-
API_HASH - From my.telegram.org (or @UseTGXBot)
-
OWNER_ID - Telegram ID of the owner
-
AUTH_USERS - Get from @MissRose_bot by /id command. Put id seperated by commas.
-
LOG_CHANNEL - Create a new channel and add the id of the channel. This channel will send the extracted subtitles or videos.
-
LOG_MEDIA_CHANNEL - Create a new channel and add the id of the channel. This channel for the source file. If this channel is not set LOG_CHANNEL will be used.
-
BOT_USERNAME - Username of the bot. Eg: @Extractorbot
-
UPSTREAM_REPO - Repo to update bot on restart.Default is this repo.
-
UPSTREAM_BRANCH - Repo branch for update. Default is master.