Files
openai-status-bot/plans/reports/pm-260626-1726-go-telegram-bot-complete.md
T

1.4 KiB

Plan Complete: Switch Telegram layer to go-telegram/bot

Summary

  • Duration: 2026-06-26 plan -> 2026-06-26 complete
  • Phases: 5/5 completed
  • Status: completed
  • Branch: develop
  • Tests: go test ./... pass

Achievements

  • Replaced custom Telegram getUpdates loop with github.com/go-telegram/bot@v1.21.0 runtime.
  • Kept command behavior in internal/bot; added framework update handler and MessageContext edge type.
  • Replaced custom Telegram HTTP client with internal/telegram.Sender adapter for replies and poller notifications.
  • Preserved topic replies via message_thread_id, HTML parse mode, disabled link preview, terminal subscriber cleanup.
  • Preserved startup flow: health endpoint, Mongo setup, offset seed, delete webhook, set commands, poller, Telegram long polling.
  • Updated docs/system-architecture.md for framework runtime and restart offset semantics.

Validation

Check Result
Full tests pass: go test ./...
Stale custom DTO search pass: no telegram.Update, telegram.Message, GetUpdates, NewClient in app Telegram layer
Plan sync pass: all phases + acceptance criteria checked
Docs impact major: architecture doc updated

Known Limitations

  • No live Telegram token/network test added; framework integration covered by compile and adapter tests.
  • Webhook mode, keyboards, callbacks remain out of scope.

Unresolved Questions

None.