Skip to content

Commit 1d3c845

Browse files
committed
2 parents 91c3326 + 3f3d3f3 commit 1d3c845

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

README.md

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,25 +119,37 @@ Follow these simple steps to set up and use the bot:
119119
- Once the bot is created and the Linux service is running:
120120
1. Send a URL from **YouTube Shorts**, **Instagram Reels**, or similar platforms to the bot.
121121
Example:
122-
```bash
122+
```
123123
https://youtube.com/shorts/kaTxVLGd6IE?si=YaUM3gYjr1kcXqTm
124124
```
125125
3. Wait for the bot to process the URL and respond.
126126

127127
### Supported platforms by default:
128-
```bash
128+
```
129129
instagram reels
130130
tiktok
131131
reddit
132132
x.com
133133
youtube shorts
134134
```
135135

136-
### Additionaly bot can download videos from other sources (for example youtube). Usually videos shorter than 10 minutes works fine. Telegram limitation is 50MB for a video.
137-
- To download full video from youtube add two asterisk before the url address.
136+
### Additionally, the bot can download videos from other sources (for example YouTube)—usually, videos shorter than 10 minutes work fine. Telegram limitation is 50MB for a video.
137+
- To download the full video from YouTube add two asterisks before the url address.
138138
Example:
139-
```bash
139+
```
140140
**https://www.youtube.com/watch?v=rxdu3whDVSM or with a space ** https://www.youtube.com/watch?v=rxdu3whDVSM
141141
```
142142
- Full list of supported sites here: [yt-dlp Supported Sites](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)
143+
144+
### The bot can use 'Safelist' to restrict access for users or groups.
145+
- Make sure you have these variables in your `.env` file either not set or with ids.
146+
- You can get your `chat_id` or `user_id` by setting `LIMIT_BOT_ACCESS=True` first, send a link and the bot will answer you with the IDs.
147+
- Group Chat has more priority. All users in the Group Chat can use the bot but have no access to the bot privately.
148+
- When `LIMIT_BOT_ACCESS=True` to use the bot in private messages add the user's ID to the `ALLOWED_USERNAMES` variable.
149+
- If you want a bot in your Group Chat with restrictions, leave `ALLOWED_CHAT_IDS` empty and define the `ALLOWED_USERNAMES` variable list.
150+
```
151+
LIMIT_BOT_ACCESS=False --- If True, the bot will only work for users in ALLOWED_USERNAMES or ALLOWED_CHAT_IDS
152+
ALLOWED_USERNAMES= --- list of allowed usernames as strings separated by commas
153+
ALLOWED_CHAT_IDS= --- list of allowed chat IDs as strings separated by commas
154+
```
143155
---

0 commit comments

Comments
 (0)