Merge branch 'sergiks-docs-multiple-chats'

This commit is contained in:
Fabian Schlenz 2020-11-25 18:02:14 +01:00
commit 5053910f37
1 changed files with 9 additions and 0 deletions

View File

@ -92,6 +92,15 @@ TELEGRAM_TOKEN="123456:AbcDefGhi-JlkMno"
TELEGRAM_CHAT="12345678"
```
Multiple chat ids can be defined in a config file as a bash array:
```bash
TELEGRAM_TOKEN="123456:AbcDefGhi-JlkMno"
CHATS=(12345678, 23456789, 34567)
```
With such config command `telegram.sh "Hello world"` will deliver message to all listed chat ids.
Please be aware that you should keep your token a secret.
You can also add permanent proxy settings in there by adding: