Merge branch 'sergiks-docs-multiple-chats'
This commit is contained in:
commit
5053910f37
|
@ -92,6 +92,15 @@ TELEGRAM_TOKEN="123456:AbcDefGhi-JlkMno"
|
||||||
TELEGRAM_CHAT="12345678"
|
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.
|
Please be aware that you should keep your token a secret.
|
||||||
|
|
||||||
You can also add permanent proxy settings in there by adding:
|
You can also add permanent proxy settings in there by adding:
|
||||||
|
|
Loading…
Reference in New Issue