Authorized Telegram
operations backend
Open-TGate is a private, safety-first backend built on TDLib. It keeps authorized Telegram accounts synchronized to a durable system of record β with persistent sessions, idempotent ingestion, and human-approval controls before anything is ever sent.
A durable bridge between Telegram and your data platform
A persistent worker completes an authorized Telegram session through TDLib and continuously normalizes accounts, chats and messages into Supabase. State survives redeploys, ingestion is idempotent, and outbound sending stays disabled until approval controls pass verification.
Private by design
No public API surface for data. The dashboard proxies only health; direct API paths are refused at the edge.
Restart-safe
TDLib session and database state live on a persistent volume, so a redeploy resumes instead of re-importing.
System of record
Normalized entities and an outbox event stream land in Supabase β the durable source downstream systems read.
Built for reliable, authorized synchronization
Every capability is scoped to authorized operation and observable in production.
Persistent TDLib worker
Loads native libtdjson, holds the session, and heartbeats liveness continuously.
Entity sync
Accounts and chats normalized to durable records; per-chat backfill with resumable checkpoints.
Idempotent ingestion
Live updates UPSERT safely β no duplicates on retry, restart, or replay.
Transactional outbox
Downstream events emit only after the database transaction commits.
Sentry observability
DSN-gated error and performance reporting across api and worker; a no-op when unset.
Health & readiness
/healthz and /readyz gate deploys and rollbacks with real signals.
Source to production, verified end to end
One canonical path β no drift, no untracked runtimes. Cloudflare fronts the public edge; Zeabur runs the always-on services.
Cloudflare edge
DNS, TLS, proxy and WAF in front of the Zeabur API domain. This dashboard is a Cloudflare Worker that exposes only health.
Immutable releases
Semver tags publish to Docker Hub; production pins an exact tag or @sha256 digest so rollback is one redeploy.
Least privilege, enforced by default
Safety is a property of the build, not an afterthought. These controls ship enabled.
EXTERNAL_SEND_ENABLED=false until approval controls pass verification.Runtime status
Checked from your browser against the API's public health endpoint.
/healthz
Outbound Telegram sending remains disabled until operator approval controls pass verification. This page performs no authenticated operations and stores no data.