openclaw/src/telegram
mneves75 33e2d53be3 feat(telegram): wire replyToMode config, add forum topic support, fix messaging tool duplicates
Changes:
- Default replyToMode from "off" to "first" for better threading UX
- Add messageThreadId and replyToMessageId params for forum topic support
- Add messaging tool duplicate detection to suppress redundant block replies
- Add sendMessage action to telegram tool schema
- Add @grammyjs/types devDependency for proper TypeScript typing
- Remove @ts-nocheck and fix all type errors in send.ts
- Add comprehensive docs/telegram.md documentation
- Add PR-326-REVIEW.md with John Carmack-level code review

Test coverage:
- normalizeTextForComparison: 5 cases
- isMessagingToolDuplicate: 7 cases
- sendMessageTelegram thread params: 5 cases
- handleTelegramAction sendMessage: 4 cases
- Forum topic isolation: 4 cases

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 00:50:47 +00:00
..
bot.media.test.ts fix(telegram): sequence runner updates and cap concurrency 2026-01-07 22:08:20 +01:00
bot.test.ts refactor(telegram): extract runner config and key helper 2026-01-07 22:22:21 +01:00
bot.ts feat(telegram): wire replyToMode config, add forum topic support, fix messaging tool duplicates 2026-01-08 00:50:47 +00:00
download.test.ts chore(ci): fix lint and swiftformat failures 2025-12-08 01:48:53 +01:00
download.ts fix: use file-type for mime sniffing 2025-12-20 19:13:50 +01:00
draft-stream.ts feat: telegram draft streaming 2026-01-07 11:08:32 +01:00
index.ts feat: unify provider reaction tools 2026-01-07 04:16:39 +01:00
monitor.test.ts fix(telegram): sequence runner updates and cap concurrency 2026-01-07 22:08:20 +01:00
monitor.ts refactor(telegram): extract runner config and key helper 2026-01-07 22:22:21 +01:00
pairing-store.test.ts fix(security): lock down inbound DMs by default 2026-01-06 17:51:56 +01:00
pairing-store.ts fix(security): lock down inbound DMs by default 2026-01-06 17:51:56 +01:00
probe.ts feat(gateway): add models.list 2025-12-20 23:43:27 +01:00
proxy.ts refactor: lint cleanups and helpers 2025-12-23 00:28:55 +00:00
send.test.ts feat(telegram): wire replyToMode config, add forum topic support, fix messaging tool duplicates 2026-01-08 00:50:47 +00:00
send.ts feat(telegram): wire replyToMode config, add forum topic support, fix messaging tool duplicates 2026-01-08 00:50:47 +00:00
token.test.ts chore: rename project to clawdbot 2026-01-04 14:38:51 +00:00
token.ts chore: rename project to clawdbot 2026-01-04 14:38:51 +00:00
webhook-set.ts Add Bun bundle docs and Telegram grammY support 2025-12-07 22:47:05 +01:00
webhook.test.ts chore(ci): fix lint and swiftformat failures 2025-12-08 01:48:53 +01:00
webhook.ts fix(logging): trim provider log prefixes 2026-01-02 00:15:01 +00:00