No description
  • TypeScript 74.8%
  • Python 22.8%
  • JavaScript 1.2%
  • Dockerfile 1.2%
Find a file
twerner 2b820aef28
Some checks failed
CI / test (push) Successful in 20s
CI / docker (push) Failing after 10s
Merge pull request 'fix: add Docker registry authentication for image push' (#9) from bugfix/docker-registry-auth into dev
Reviewed-on: #9
2026-05-19 20:43:23 +00:00
.forgejo fix: add Docker registry authentication for image push 2026-05-19 20:42:03 +00:00
docs docs: update architecture.md with implementation details 2026-05-19 19:18:22 +00:00
telegram-bridge fix: repair tests for ESM compatibility 2026-05-19 20:39:19 +00:00
.env.example feat: initial telegram-bridge implementation 2026-05-19 19:14:15 +00:00
.gitignore add gitignore 2026-05-19 20:21:44 +00:00
AGENTS.md docs: add pull‑request instructions to AGENTS.md 2026-05-19 18:35:55 +00:00
docker-compose.yml feat: initial telegram-bridge implementation 2026-05-19 19:14:15 +00:00
LICENSE Initial commit 2026-05-19 18:00:41 +00:00
README.md docs: update documentation with decisions and status 2026-05-19 19:17:26 +00:00

coder-bot

Telegram-basierter Bridge-Service für opencode AI Coding Agent.

Schnellstart

cp .env.example .env
# Edit .env with your Telegram Bot Token and other settings
docker-compose up -d

Features

Command Beschreibung
/start Willkommen & Hilfe
/new <name> Neue Session erstellen
/ask <prompt> Anfrage an die aktuelle Session
/sessions Alle Sessions auflisten
/status <id> Session Status
/file <path> Dateiinhalt lesen
/abort Laufende Aktion abbrechen
/session <id> Zu einer Session wechseln
/clear Aktuelle Session vergessen
/help Hilfe anzeigen

Plain text Nachrichten werden automatisch als /ask interpretiert.

Umgebungsvariablen

Variable Beschreibung Standard
TELEGRAM_BOT_TOKEN Telegram Bot Token -
ALLOWED_CHAT_IDS Erlaubte Chat-IDs (kommasepariert) -
OPENCODE_SERVER_PASSWORD Passwort für opencode Server -
OPENCODE_API_URL URL des opencode Servers http://opencode-server:4096
LOG_LEVEL Log-Level info

Sicherheit

  • Safe Mode: Shell-Befehle sind deaktiviert
  • Chat-ID Whitelist: Nur autorisierte Chats können den Bot nutzen
  • Rate Limiting: 1 Anfrage pro Sekunde pro Chat

Entwicklung

cd telegram-bridge
npm install
npm run dev

Test

cd telegram-bridge
npm test

Docker

docker-compose up -d

Dokumentation

Datei Inhalt
docs/concept.md Hauptdokumentation, Architektur
docs/architecture.md Technische Details & Datenfluss
docs/security.md OWASP Sicherheitskonzept
docs/api-mapping.md Telegram ↔ Opencode API Mapping

Status

Implementierung abgeschlossen - Phase 6: Tests & Dokumentation