#11920: Telegram: create forum topics via message tool (thread-create)
docs
channel: telegram
agents
stale
Cluster:
Messaging Platform Improvements
Closes #10427
What
- Add Telegram support for creating forum topics via the message tool using the existing `thread-create` action (calls Bot API `createForumTopic`).
- Expose optional topic icon params (`iconColor`, `iconCustomEmojiId`).
- Add `channels.telegram.actions.createTopic` gate (default enabled).
- Document usage in docs.
Why
- Sending to `threadId` only routes to existing topics; this enables programmatic creation of new topics in forum supergroups.
Testing
- Manual: created a topic in a forum-enabled supergroup and sent messages into the returned thread id.
- Unit: added coverage for Telegram action handling and message action adapter mapping.
AI-assisted
- This PR was AI-assisted (Codex).
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
Adds Telegram support for creating forum topics via the message tool by mapping the existing `thread-create` action to a new Telegram tool action `createForumTopic` (Bot API `createForumTopic`). Adds optional topic icon parameters (`iconColor`, `iconCustomEmojiId`), a new action gate `channels.telegram.actions.createTopic` (default enabled), and updates docs plus unit tests to cover the new mapping and handler.
<h3>Confidence Score: 4/5</h3>
- This PR looks safe to merge; changes are additive and covered by unit tests, but CI should verify since tests couldn't be run locally in this environment.
- Reviewed the full diff: implementation routes `thread-create` to Telegram Bot API `createForumTopic`, adds config schema/types and docs updates, and includes unit tests for both the action handler and adapter mapping. No obvious runtime/type errors or unsafe behavior were introduced. Local test execution wasn't possible here (tooling missing), so confidence is slightly reduced pending CI.
- src/telegram/send.ts; src/agents/tools/telegram-actions.ts; src/channels/plugins/actions/telegram.ts
<!-- greptile_other_comments_section -->
<sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub>
<!-- /greptile_comment -->
Most Similar PRs
#12950: feat: add Telegram pin/unpin message support
by alex-muradov · 2026-02-09
81.3%
#19213: Telegram: preserve DM topic thread in direct replies
by Kemalau · 2026-02-17
81.3%
#6457: fix(telegram): register commands for group scope + preserve topic t...
by dae-sun · 2026-02-01
81.1%
#6192: Telegram: fix DM Topics thread routing
by ViffyGwaanl · 2026-02-01
80.2%
#14367: feat(telegram): add message read via inbound message store
by michaelquinlan88 · 2026-02-12
80.2%
#7261: fix(telegram): preserve DM topic thread id for outbound media
by ViffyGwaanl · 2026-02-02
79.2%
#7751: Telegram: persist inbound history (SQLite) + add read action
by welttowelt · 2026-02-03
78.6%
#12936: fix(telegram): omit message_thread_id for private DM chats
by omair445 · 2026-02-09
78.6%
#7058: feat(telegram): add channel_post handler for broadcast channels
by waifu7498173 · 2026-02-02
78.5%
#21029: Feature/telegram bot avatar clean
by aleonnet · 2026-02-19
78.4%