An OpenClaw skill that turns Telegram messages into forum topics instantly.
If you find this useful, star the repo and follow me on X for more!
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.
demo.mov
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.
clawhub install itstauq/telegram-auto-topicOr manually — clone this repo into your OpenClaw skills directory.
- The group must be configured in OpenClaw (
channels.telegram.groups.<CHAT_ID>). - The group must have forum/topics enabled.
- Your bot must be an admin in the group with Manage Topics permission.
This skill reads your OpenClaw configuration file (~/.openclaw/openclaw.json) to obtain the Telegram bot token. The token is used solely for Telegram API calls to create forum topics and post messages. No data is sent anywhere else.
- You send a message starting with
/topic - A new forum topic is created — titled from your message automatically
- Your message is quoted in the new topic with your name
- You get a reply with a clickable link to the new topic
- The bot responds to your message in the new topic
Works with media too — photos, videos, or documents with /topic in the caption get forwarded into the new topic.
Skip the @bot mention — by default, the bot only responds when mentioned. To use /topic without mentioning the bot, set requireMention: false for the group in your OpenClaw config.
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"
}
]
}MIT