Telegram
The Telegram notifier delivers each NotificationRequest for the telegram channel through the Bot API. The same image can run as an external probe for a Kontiki environment.
Framework options (kontiki.*) are documented with Kontiki. Restart the service after a YAML change.
app.telegram
| Key | Default | Description |
|---|---|---|
app.telegram.bot_token |
"" |
BotFather token. Required to send. Often supplied via a gitignored overlay (stack/notifiers/telegram_bot_token.yaml, copied from stack/notifiers/telegram_bot_token.yaml.example). |
app.telegram.api_base_url |
https://api.telegram.org |
Telegram Bot API base URL. |
app.telegram.degraded_after_failures |
3 |
Consecutive API failures before the instance is marked degraded. |
app.telegram.category_icons |
unset | Optional map category → emoji for structured alert banners. Exact match, then prefix (for example weather matches weather.wind). Unmatched categories get no domain emoji. |
app.endpoints
Map of endpoint id → fields. Each endpoint needs chat_id (digits, optional leading -).
app:
telegram:
bot_token: "123456789:YOUR_BOT_TOKEN_FROM_BOTFATHER"
category_icons:
natural.earthquake: "🌍"
weather: "🌧"
kontiki.registry: "⚙️"
endpoints:
alerts:
chat_id: "123456789"
Structured messages use built-in severity icons (low → 🟢 … critical → 🔴). The banner title is the humanized event_type when present, otherwise the last category segment. Attribute labels are auto-humanized; order follows the producer’s attribute dict.
Install
pip install boomerang-telegram-notifier==1.1.0
The package version is the image tag. After install the command is boomerang-telegram-notifier.
Standard mode
The process joins the environment bus and delivers notifications. LavinMQ and the registry come from stack/common.services.yaml.
docker run --rm \
-v "$PWD/stack:/stack:ro" \
ghcr.io/kontiki-org/boomerang-telegram-notifier:1.1.0 \
--config /stack/common.services.yaml \
--config /stack/notifiers/telegram.yaml \
--config /stack/notifiers/telegram_bot_token.yaml
From a checkout:
poetry run boomerang-telegram-notifier \
--config stack/common.services.yaml \
--config stack/notifiers/telegram.yaml \
--config stack/notifiers/telegram_bot_token.yaml
Sentinel mode
The process runs outside the environment and watches its heartbeats. Silence (hosts or the broker down) sends Down on this channel; the next heartbeat sends Recovered. kontiki.amqp.disable: true keeps startup independent of that environment's broker. The heartbeat route still needs kontiki.http.
Without watchdogs, POST /watchdogs/{name}/heartbeat answers 404 and the sweep does nothing.
| Key | Default | Description |
|---|---|---|
app.sentinel.state_path |
— | Required when watchdogs is non-empty. JSON file for watchdog state. A missing file on first start is the initial unseen state. An unreadable file fails startup. |
app.sentinel.watchdogs |
{} |
Map of watchdog name → spec. The name is the {name} in the heartbeat URL. Omit or leave empty when this process only delivers alerts. |
app.sentinel.watchdogs.<name>
| Field | Required | Description |
|---|---|---|
token |
yes | Expected Authorization: Bearer value. |
timeout_seconds |
yes | Silence after which the watchdog is DOWN. At least three times the monitor’s send interval. |
endpoint_key |
yes | Key in this notifier’s app.endpoints. An unknown key fails startup. |
POST /watchdogs/{name}/heartbeat (empty body):
| Case | Status |
|---|---|
| Known name, matching Bearer | 204 |
| Known name, missing or wrong Bearer | 401 |
| Unknown name, or no watchdogs | 404 |
A watchdog is unseen, UP, or DOWN. The first heartbeat before timeout_seconds marks it UP and sends nothing. No heartbeat, or a last heartbeat older than timeout_seconds, sends a Down alert. A heartbeat received while DOWN sends a Recovered alert. The state file keeps a DOWN watchdog across a restart.
Those alerts use the notifier’s structured layout. category is kontiki.sentinel. event_type is down or recovered, so the banner is Down or Recovered. Down is critical, Recovered is low. The heartbeat name is the attribute watchdog. There is no message body. They are sent on the notifier’s own delivery path, not on the bus. The sweep runs every 10 seconds. A failed send is retried on the next one. If the watchdog changes state before that send succeeds, only the latest transition is sent.
kontiki:
amqp:
disable: true
http:
address: 0.0.0.0
port: 8004
app:
telegram:
bot_token: "123456789:YOUR_BOT_TOKEN_FROM_BOTFATHER"
endpoints:
ops_alerts:
chat_id: "123456789"
sentinel:
state_path: /var/lib/boomerang/sentinel-state.json
watchdogs:
prod:
token: "change-me"
timeout_seconds: 180
endpoint_key: ops_alerts
docker run --rm \
-v "$PWD/sentinel.yaml:/sentinel.yaml:ro" \
-v "$PWD/sentinel-state:/var/lib/boomerang" \
-p 8004:8004 \
ghcr.io/kontiki-org/boomerang-telegram-notifier:1.1.0 \
--config /sentinel.yaml
From a checkout:
poetry run boomerang-telegram-notifier --config sentinel.yaml
Metadata
Release files for boomerang-telegram-notifier 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| boomerang_telegram_notifier-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for boomerang_telegram_notifier-1.1.0-py3-none-any.whl |
Release files / boomerang_telegram_notifier-1.1.0-py3-none-any.whl
| Download URL | boomerang_telegram_notifier-1.1.0-py3-none-any.whl |
|---|---|
| Size | 64.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
299aa3880a58dd7c0845cd1a0e7cba56080469d5a36b009cbbc33e2932d4f9b3
|
|
BLAKE2b-256 checksum How to use checksums |
c9b5a509100fd3f66bc539da14bcd4f13756002604d4230929ef277641b2f28a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.
Transparency logSecurity for boomerang-telegram-notifier 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
1 file in this release has been uploaded with provenance metadata.
Attestation for boomerang_telegram_notifier-1.1.0-py3-none-any.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.