Merge branch 'sergiks-docs-multiple-chats'

master
Fabian Schlenz 2 years ago
commit 5053910f37
  1. 9
      README.md

@ -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:

Loading…
Cancel
Save