picoclaw/pkg/channels
Together f12c337965 Remove duplicate truncate functions, reuse utils.Truncate
Multiple packages had their own private truncate implementations:
- channels/telegram.go: truncateString (byte-based, no "...")
- channels/dingtalk.go: truncateStringDingTalk (byte-based, no "...")
- voice/transcriber.go: truncateText (byte-based, with "...")

All three are functionally equivalent to the existing utils.Truncate,
which already handles rune-safe truncation and appends "..." correctly.

Replace all private copies with utils.Truncate and delete the dead code.
2026-02-12 00:46:48 +08:00
..
base.go Fix typos and update API keys in README 2026-02-11 20:46:01 +08:00
dingtalk.go Remove duplicate truncate functions, reuse utils.Truncate 2026-02-12 00:46:48 +08:00
discord.go Remove duplicate truncate functions, reuse utils.Truncate 2026-02-12 00:46:48 +08:00
feishu.go Remove duplicate truncate functions, reuse utils.Truncate 2026-02-12 00:46:48 +08:00
maixcam.go * First commit 2026-02-09 19:20:19 +08:00
manager.go Merge branch 'pr-12' 2026-02-11 19:47:11 +08:00
qq.go add QQ channel support 2026-02-11 00:00:53 +08:00
telegram.go Remove duplicate truncate functions, reuse utils.Truncate 2026-02-12 00:46:48 +08:00
whatsapp.go Remove duplicate truncate functions, reuse utils.Truncate 2026-02-12 00:46:48 +08:00