Repository navigation
v0.1.0
First release.
Added
- Bounded per-chat concurrent delivery:
outbox.delivery_concurrency
(default 1, 1..=64). Different chats are delivered in parallel; one chat
is always delivered in order, and a failed row blocks that chat's later
rows until it is retried. Rows carry achat_keycolumn. - Webhook ingress per bot (
POST /webhooks/{bot_id}) with constant-time
webhook-secret validation. - Per-chat token-bucket rate limiting; rejections answer
200so abusive
traffic is not amplified by Telegram retries. - Forwarding to private downstream bots with gateway headers
(x-telegateway-bot,x-telegateway-update-id) and W3Ctraceparent
propagation. - Optional TLS termination via
[tls](Rustls); plain HTTP otherwise. - Telegram webhook auto-registration (
auto_register+public_url+
per-botbot_token); failures are logged, never fatal. - Durable outbox: accepted updates are persisted to SQLite (WAL) before
the gateway answers200, then delivered asynchronously with
exponential backoff, 25 max attempts, and dead-lettering.503on
persistence failure so Telegram retries. - Outbox listing (
GET /outbox) and replay API (POST /outbox/replay),
guarded by the[admin]bearer token. Seedocs/API.md. - Per-bot circuit breaker: fast-fail while open, half-open probe after
the cooldown, doubling cooldown capped atmax_cooldown_secs. - OpenTelemetry export via
[otel]: traces and per-bot metrics over
OTLP/HTTP. Absent[otel], every instrument is a no-op. example/with echo bots in Python, Go, and Rust behind one gateway
config.- JSON structured logs;
/healthzand/readyzprobes
(/readyzchecks the database). - Bounded queues:
outbox.max_pendingsheds with503per bot;
outbox.max_dead_letterscaps dead letters per bot (plus 30-day age limit). - Separate admin listener (
[admin] listen) to keep admin routes off the
public socket; admin token must be at least 32 characters. - Load shedding (
503) when the concurrency limit is saturated; request
timeouts answer504. - Webhook authentication happens before the body is parsed; the original
bytes Telegram sent are stored and forwarded unchanged. Rate limiting
keys on chat id, falling back to the sending user; duplicates do not
consume quota. - Downstream handling: 4xx (except 408/425/429) dead-letter immediately
without tripping the breaker;Retry-Afterhonored on 429/503;
redirects are not followed; 5s connect timeout. - Secrets (
bot_token,webhook_secret, admin token) are redacted in
Debug, and URLs are stripped from delivery and registration errors. - Strict config validation (id/secret charsets, http/https URLs, https
public_url, positive intervals, retention bounds). - Supervised workers and graceful shutdown: dispatchers finish the
in-flight delivery; a dead worker exits the process non-zero. - SIGHUP reloads the TLS certificate and key.
- Webhook auto-registration retries with backoff.
- Container image
HEALTHCHECKon/healthz. - Delivery is at-least-once, per-bot sequential, best-effort ordered;
downstream bots must dedupe onupdate_id. - Release automation:
cargo publishto crates.io and release binaries
(Linux x86_64 and aarch64, macOS x86_64 and ARM64) onv*tags. Seedocs/RELEASING.md.
Fixed
.gitignoreonly ignores the rootconfig.toml, so
example/config.tomlis committed.