11 Tests grün. F-06 (Integration) ist jetzt Ready-Set. Session-Prompts für F-03/04/05 archiviert. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
28 lines
958 B
Markdown
28 lines
958 B
Markdown
# Session-Prompt F-04 — Telegram Bot Handler
|
|
|
|
```
|
|
Modell: Sonnet
|
|
|
|
Du arbeitest in /Users/tarikmoussa/Desktop/files/tg-bot-jetson auf einem neuen Branch
|
|
`feat/bot-handler` (von `main`).
|
|
|
|
## Aufgabe
|
|
Implementiere `src/bot/handlers.py` (cmd_start, cmd_help, handle_message) und
|
|
`src/main.py` (Application-Setup, Handler-Registrierung, run_polling).
|
|
Referenz: python-telegram-bot v21 Doku (golden oracle).
|
|
|
|
## Akzeptanzkriterien
|
|
- [ ] `/start` antwortet mit Begrüßungstext.
|
|
- [ ] `/help` antwortet mit Befehlsübersicht.
|
|
- [ ] `handle_message` ruft `ask_model(text)` auf und sendet die Antwort.
|
|
- [ ] `main.py` registriert alle Handler mit dem Whitelist-Filter.
|
|
- [ ] `uv run pytest tests/test_handlers.py -v` → grün (≥ 3 Tests).
|
|
|
|
## Nicht anfassen
|
|
`whitelist.py`, `connector.py`, `config.py`.
|
|
|
|
## Commit & Push
|
|
- `feat: add telegram handlers and application entrypoint (F-04)`
|
|
- Trailer: `Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>`
|
|
```
|