Skip to content

Commit 4cd8a99

Browse files
committed
Add ACL setup for local Bot API server
1 parent 1715c24 commit 4cd8a99

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,13 @@ docker run \
176176
--dir=/var/lib/telegram-bot-api
177177
```
178178

179+
Grant the current user read/write/execute access to the data directory so the bot can delete processed files:
180+
181+
```bash
182+
sudo setfacl -R -m u:$(whoami):rwx /var/lib/telegram-bot-api
183+
sudo setfacl -R -d -m u:$(whoami):rwx /var/lib/telegram-bot-api
184+
```
185+
179186
Run this container and set `USE_LOCAL_PTB` so that the bot uses the local
180187
server.
181188

0 commit comments

Comments
 (0)