mirror of
https://github.com/tiennm99/openai-status-bot.git
synced 2026-10-11 03:13:41 +00:00
1.4 KiB
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
getUpdatesloop withgithub.com/go-telegram/bot@v1.21.0runtime. - Kept command behavior in
internal/bot; added framework update handler andMessageContextedge type. - Replaced custom Telegram HTTP client with
internal/telegram.Senderadapter 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.mdfor 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.