# Telegram Gateways and Legacy Bridge

> **Status:** CURRENT
> **Last verified:** 2026-11-28

There are two distinct Telegram polling processes in the verified current
topology. They are not the same service and must not be documented as one.

| Status | Host | Service | Observed state | Role |
| --- | --- | --- | --- | --- |
| **CURRENT** | Oracle `dify-a1` (`129.225.74.53`) | `hermes-gateway.service` | active/running; enabled | Hermes agent gateway under the owner-only policy |
| **LEGACY** | Google `ebstudy-vm` (`35.209.206.38`) | `ebtbridge.service` | active/running; **disabled** | Standalone legacy `tbridge.py` poller |

## CURRENT — Oracle Hermes gateway

Hermes runs under the `ubuntu` user on Oracle. Its user unit is
`/home/ubuntu/.config/systemd/user/hermes-gateway.service`, and it executes the
Hermes `gateway run` command from `/home/ubuntu/.hermes`. Telegram transport is
configured as `polling`.

**Required/current policy:** access is owner-only. The documented owner Telegram
ID is `8260131997`; regular users do not receive code/file edit access or Hermes
tool access. The runtime allowlist key is `TELEGRAM_ALLOWED_USERS`, but its
`.env` value was not read. Neither the effective value nor environment-variable
precedence over YAML was independently inspected, so runtime enforcement is not
independently verified. See [Hermes](hermes.md) for the exact model, tool,
rate-limit, session, and memory configuration, and
[Security](security.md#owner-only-control) for access boundaries.

## LEGACY — Google `ebtbridge.service`

The legacy bridge is a separate system service on Google:

- Unit: `/etc/systemd/system/ebtbridge.service`
- User: `zxc-funnel`
- Working directory: `/home/zxc-funnel/zxc`
- Script: `/home/zxc-funnel/zxc/tbridge.py`
- Process: `/home/zxc-funnel/zxc/.venv/bin/python tbridge.py`
- Transport: Telegram `getUpdates` polling; no listening webhook port
- Unit-file state: **disabled**, so it is not enabled for boot
- Runtime state at verification: **active/running**

The latest 200 journal entries contained 129 `poll error` signals and 3
rate-limit/429 signals. Raw messages are deliberately omitted because they may
contain user content or sensitive values. The exact root cause of the errors is
unverified; the counts do not prove token conflict, network failure, or any
other specific cause.

This service is retained legacy infrastructure, not the preferred Telegram
entry point and not the Oracle Hermes gateway. Do not restart, repoint, or merge
the two pollers without a separately approved operational change.

## HISTORICAL — earlier bridge arrangements

Older documentation placed `ebtbridge.service` on the retired Oracle host
recorded in [history.md](history.md) and described an Oracle Examiner arrangement. Those statements
are **HISTORICAL ONLY**. Current evidence places the legacy bridge on Google
and the Hermes gateway under the owner-only policy on the current Oracle host.
The retired Oracle host was not contacted for this verification, and no current
service claim is made about it.

## Operational boundaries

- Do not publish Telegram bot tokens, `.env` values, raw journal messages, or
  user message content.
- Do not describe the disabled Google bridge as enabled or as the Hermes
  gateway.
- Do not describe a registered-user companion as operational; companions are
  **PLANNED — NOT IMPLEMENTED**.
- Use [SSH](ssh.md) for the current direct access commands and read-only service
  inspection examples.
