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>
834 B
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-botv21 mit nativemasyncioundhttpxals HTTP-Client für den Modell-Connector.uvals 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.
httpxist de-facto-Standard für async HTTP in Python 3.11+.uvist 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.