# 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.