You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-5Lines changed: 8 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,9 @@ Restart=always
49
49
RestartSec=5
50
50
Environment="BOT_TOKEN=your_bot_token"# <====== REPLACE THIS
51
51
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
52
55
53
56
[Install]
54
57
WantedBy=multi-user.target
@@ -142,14 +145,14 @@ Example:
142
145
- Full list of supported sites here: [yt-dlp Supported Sites](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)
143
146
144
147
### 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.
147
150
- 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.
149
152
- If you want a bot in your Group Chat with restrictions, leave `ALLOWED_CHAT_IDS` empty and define the `ALLOWED_USERNAMES` variable list.
150
153
```
151
154
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
0 commit comments