-
-
Notifications
You must be signed in to change notification settings - Fork 69.2k
Feature: Add editForumTopic action to Telegram message tool #7746
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
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
editForumTopicto rename it (e.g., "Testing Threaded Mode")
Telegram Bot API Reference
- Method:
editForumTopic - Docs: https://core.telegram.org/bots/api#editforumtopic
- Parameters:
chat_id(required)message_thread_id(required)name(optional, 0-128 chars)icon_custom_emoji_id(optional)
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Fields
Give feedbackNo fields configured for issues without a type.