Files
agent-swarm-repo/docs/adr/0002-python-telegram-bot-framework.md
Tarik Moussa b7b6766364 docs: bootstrap tg-bot-jetson — board, ADRs, state, session-prompts
ROADMAP mit 7 Items (F-01…F-07) und DAG. STATE aktiviert. CONVENTIONS
projektspezifisch ergänzt. ADRs 0002-0004 (Stack, Whitelist, Spike-Gate).
Kaltstartfähige Prompts für F-01 (Skeleton) und F-02 (API-Spike) erzeugt.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-03 23:24:13 +02:00

834 B

0002 — python-telegram-bot v21 als Bot-Framework

  • Status: accepted
  • Kontext: Das Projekt braucht ein Python-Telegram-Bot-Framework. Alternativen: aiogram, telebot (pyTelegramBotAPI), ntelegram.
  • Entscheidung: python-telegram-bot v21 mit nativem asyncio und httpx als HTTP-Client für den Modell-Connector. uv als Paketmanager.
  • Gründe:
    • PTB v21 hat die breiteste Doku, Beispiel-Bibliothek und Community für Telegram.
    • Asyncio-first: passt zum Streaming-Potenzial künftiger Modell-Antworten.
    • httpx ist de-facto-Standard für async HTTP in Python 3.11+.
    • uv ist schneller und reproduzierbarer als plain pip.
  • Konsequenz: Gesamte Codebasis ist async-first. PTB-Filter-System (filters.User) eignet sich direkt für die Whitelist (F-03). Keine Sync-Wrapper nötig.