Skip to content

Commit f093c48

Browse files
authored
Update README.md
1 parent 1d3c845 commit f093c48

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ Restart=always
4949
RestartSec=5
5050
Environment="BOT_TOKEN=your_bot_token" # <====== REPLACE THIS
5151
Environment="DEBUG=False"
52+
Environment="LIMIT_BOT_ACCESS=False" # <====== REPLACE THIS (optional) Type: Boolean
53+
Environment="ALLOWED_USERNAMES=" # <====== REPLACE THIS (value is optional) Type: string separated by commas. Example: ALLOWED_USERNAMES=username1,username2,username3
54+
Environment="ALLOWED_CHAT_IDS=" # <====== REPLACE THIS (value is optional) Type: string separated by commas Example: ALLOWED_CHAT_IDS=12349,12345,123456
5255

5356
[Install]
5457
WantedBy=multi-user.target
@@ -142,14 +145,14 @@ Example:
142145
- Full list of supported sites here: [yt-dlp Supported Sites](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)
143146

144147
### 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.
148+
- Make sure you have these variables in your `.env` file either not set or with chat ID and username.
149+
- You can get your `chat_id` or `username` by setting `LIMIT_BOT_ACCESS=True` first, send a link and the bot will answer you with the IDs.
147150
- 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.
151+
- When `LIMIT_BOT_ACCESS=True` to use the bot in private messages add the username to the `ALLOWED_USERNAMES` variable.
149152
- If you want a bot in your Group Chat with restrictions, leave `ALLOWED_CHAT_IDS` empty and define the `ALLOWED_USERNAMES` variable list.
150153
```
151154
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
155+
ALLOWED_USERNAMES= --- list of allowed usernames as strings separated by commas. Example: ALLOWED_USERNAMES=username1,username2,username3
156+
ALLOWED_CHAT_IDS= --- list of allowed chat IDs as strings separated by commas. Example: ALLOWED_CHAT_IDS=12349,12345,123456
154157
```
155158
---

0 commit comments

Comments
 (0)