Summary
Add support for editing Telegram forum topic names via the message tool, plus automatic topic naming based on conversation content.
Context
OpenClaw supports Telegram's Threaded Mode (forum topics in private chats), creating separate sessions per topic. However, there's no way to programmatically rename topics — and topics start with generic names instead of reflecting the conversation content.
Proposed Features
1. Manual Topic Editing (message tool action)
Add an editForumTopic action to the Telegram message tool:
{
action: "editForumTopic",
channel: "telegram",
chatId: "1196986586",
threadId: 91627,
name: "New Topic Name",
iconCustomEmojiId: "..." // optional
}
2. Automatic Topic Naming
Similar to how ChatGPT, Claude, and other AI chat interfaces automatically name conversations based on content:
- After the first few exchanges in a new topic, automatically generate a descriptive name
- Could be configurable:
channels.telegram.autoNameTopics: true | false
- Option to set naming style/length preferences
- Should respect rate limits and not rename too frequently
Example flow:
- User starts a new topic (default name: "Topic")
- After 2-3 message exchanges, agent summarizes the topic
- Agent calls
editForumTopic to rename it (e.g., "Testing Threaded Mode")
Telegram Bot API Reference
Requirements
- For private chats with topics: Supported since Bot API 9.3
- For supergroups: Bot needs admin rights with
can_manage_topics
Use Cases
- Manual control: Agents rename threads to reflect topic changes mid-conversation
- Auto-organization: New threads get meaningful names automatically, improving chat history navigation
- Better UX: Mimics the polished experience of ChatGPT/Claude conversation naming
Summary
Add support for editing Telegram forum topic names via the message tool, plus automatic topic naming based on conversation content.
Context
OpenClaw supports Telegram's Threaded Mode (forum topics in private chats), creating separate sessions per topic. However, there's no way to programmatically rename topics — and topics start with generic names instead of reflecting the conversation content.
Proposed Features
1. Manual Topic Editing (message tool action)
Add an
editForumTopicaction to the Telegram message tool:2. Automatic Topic Naming
Similar to how ChatGPT, Claude, and other AI chat interfaces automatically name conversations based on content:
channels.telegram.autoNameTopics: true | falseExample flow:
editForumTopicto rename it (e.g., "Testing Threaded Mode")Telegram Bot API Reference
editForumTopicchat_id(required)message_thread_id(required)name(optional, 0-128 chars)icon_custom_emoji_id(optional)Requirements
can_manage_topicsUse Cases