File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -143,9 +143,10 @@ Example:
143
143
144
144
### The bot can use 'Safelist' to restrict access for users or groups.
145
145
- Make sure you have these variables in your ` .env ` file either not set or with ids.
146
- - You can find 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. 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
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.
149
150
```
150
151
LIMIT_BOT_ACCESS=False --- If True, the bot will only work for users in ALLOWED_USERNAMES or ALLOWED_CHAT_IDS
151
152
ALLOWED_USERNAMES= --- list of allowed usernames as strings separated by commas
You can’t perform that action at this time.
0 commit comments