Install
openclaw skills install telegram-auto-topicAdd `/topic` to the start of any message in a Telegram forum group to auto-create a new topic from it. A title is generated automatically from the message content. Github: https://github.com/itstauq/telegram-auto-topic
openclaw skills install telegram-auto-topicAdd /topic to the start of any message in a Telegram forum group → a new topic is created from it. The title is figured out from your message automatically — no need to think of one yourself.
1. You send a message starting with /topic:
/topic @your_bot I need to look into renewing my passport before March
2. A new forum topic "Passport Renewal Before March" is created with your message quoted inside it. You get a reply linking directly to the new topic.
channels.telegram.groups.<CHAT_ID>) — this is how OpenClaw knows to process messages from it.When a message starts with /topic:
scripts/telegram-auto-topic.sh <chat_id> <message_id> "<sender name>" "<title>" "<text after /topic>"
Pass an empty string for the text arg if there's no text (e.g. media-only).
Use the path relative to this skill's directory.topic_id, title, and link.Topic created → [<title>](<link>)threadId from the returned topic_id). Respond naturally as you would to any message./topicWorks with media too — photos, videos, or documents with /topic in the caption get forwarded into the new topic.
scripts/telegram-auto-topic.sh <chat_id> <message_id> <sender> [title] [text]
| Parameter | Type | Required | Description |
|---|---|---|---|
chat_id | arg | yes | Supergroup chat ID (negative number) |
message_id | arg | yes | Original message to quote |
sender | arg | yes | Display name of original sender |
title | arg | no | Topic title. Falls back to first ~50 chars of text if omitted |
text | arg | no | Message body after /topic. If empty, forwards as media |
Returns JSON: {"topic_id": 123, "title": "Used title", "link": "https://t.me/c/..."}
Skip the @bot mention — by default, the bot only responds when mentioned. To use /topic without mentioning the bot:
"channels.telegram.groups.<CHAT_ID>": {
"requireMention": false
}
Telegram autocomplete — to get /topic in Telegram's command menu, add under channels.telegram:
{
"customCommands": [
{
"command": "topic",
"description": "Create a new forum topic from a message"
}
]
}