Telegram Auto Topic
Add `/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/t
Add `/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/t
Real data. Real impact.
Emerging
Developers
Per week
Open source
Skills give you superpowers. Install in 30 seconds.
Add
/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:
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.scripts/telegram-auto-topic.sh <chat_id> <message_id> "<sender name>" "<title>" "<text after /topic>"
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 |
|---|---|---|---|
| arg | yes | Supergroup chat ID (negative number) |
| arg | yes | Original message to quote |
| arg | yes | Display name of original sender |
| arg | no | Topic title. Falls back to first ~50 chars of text if omitted |
| arg | no | Message body after . 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" } ] }
No automatic installation available. Please visit the source repository for installation instructions.
View Installation Instructions1,500+ AI skills, agents & workflows. Install in 30 seconds. Part of the Torly.ai family.
© 2026 Torly.ai. All rights reserved.