Setup Telegram Chat Notifications
Available Settings:
You can configure chat notifications using the following environment variables
Name | Type | Default | Description |
---|---|---|---|
TELEGRAM_HTTP_TOKEN |
string |
API token of the bot user | |
TELEGRAM_RECIPIENT_IDS |
string[] |
Comma-separated list of chat IDs |
Example
services:
dolce:
image: dangrie158/dolce:v3.2.0
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
TELEGRAM_HTTP_TOKEN: 123456789123456,AABBCCDDEEFFGGHHIIJJKKLLMM
TELEGRAM_RECIPIENT_IDS: 12345678912:456789123
Step by Step:
- Message @BotFather to create a new Bot and get your
TELEGRAM_HTTP_TOKEN
- Add the Bot to the Group you want to recieve updates in or send a DM from your account
- go to
https://api.telegram.org/bot<TELEGRAM_HTTP_TOKEN>/getUpdates
or usecurl https://api.telegram.org/bot<TELEGRAM_HTTP_TOKEN>/getUpdates | jq '.result[].message.from'
if you havecurl
andjq
installed` - get the IDs your interested in from the response