Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ovchynnikov committed Jan 29, 2025
2 parents 75eca3c + e586509 commit cfe99dd
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ This guide provides step-by-step instructions on installation and running the Vi
## Deploy with Docker


Prerequisite:
1. Create `.env` file with your token and access configuration (optional). Use `.env.example` as a reference.
2. Clone the repo
Prerequisites:
1. Create `.env` file with your token and access configuration (optional). Use `.env.example` as a reference.
2. Clone the repo
```sh
git clone https://github.com/ovchynnikov/load-bot-linux.git
git clone https://github.com/ovchynnikov/load-bot-linux.git
```
Build and run the container
```
Expand All @@ -29,7 +29,7 @@ or use builded image from Docker hub
```
docker run -d --name downloader-bot --restart always --env-file .env ovchynnikov/load-bot-linux:latest
```
Alternatively you can use docker-compose
Alternatively, you can use docker-compose
```
docker-compose build
docker-compose up
Expand Down Expand Up @@ -90,7 +90,7 @@ Environment="ALLOWED_CHAT_IDS=" # <====== REPLACE THIS (v
WantedBy=multi-user.target
```

## 3. Start the Bot Service
### 3. Start the Bot Service

Reload the systemd daemon and start the bot service:

Expand All @@ -101,7 +101,7 @@ sudo systemctl start downloader-bot.service
sudo systemctl status downloader-bot.service
```

## Troubleshooting
### 4. Troubleshooting

- Check the status of the service:
```sh
Expand Down Expand Up @@ -139,7 +139,7 @@ sudo systemctl status downloader-bot.service
```
2. Wait for the bot to process the URL and respond.

### Supported platforms by default:
## Supported platforms by default:
```
instagram reels
facebook reels
Expand All @@ -149,15 +149,17 @@ x.com
youtube shorts
```

### Additionally, the bot can download videos from other sources. Videos shorter than 10 minutes usually work fine. The Telegram limitation for a video is 50 MB.
### Ho to download videos from other sources.
Videos shorter than 10 minutes usually work fine. The Telegram limitation for a video is 50 MB.
- To download the full video from YouTube add two asterisks before the url address.
Example:
```
**https://www.youtube.com/watch?v=rxdu3whDVSM or with a space ** https://www.youtube.com/watch?v=rxdu3whDVSM
```
- Full list of supported sites here: [yt-dlp Supported Sites](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)

### The bot can use 'Safelist' to restrict access for users or groups.
## Access Control with Safe List
The bot can use 'Safelist' to restrict access for users or groups.
Ensure these variables are set in your `.env` file, without them or with the chat ID and username.
You can get your `chat_id` and `username` by setting `LIMIT_BOT_ACCESS=True` first. Then, send a word `bot_health` or `ботяра`, and the bot will answer you with the chat ID and username.
- Allowed Group Chat priority is highest. All users in the Group Chat can use the bot even if they have no access to the bot in private chat.
Expand Down

0 comments on commit cfe99dd

Please sign in to comment.