telegram-auto-topic
Creates Telegram forum topics from messages via scripts/telegram-auto-topic.sh. The script reads $HOME/.openclaw/openclaw.json (config key channels.telegram.botToken, env OPENCLAW_CONFIG) and makes network calls to https://api.telegram.org/bot${BOT_TOKEN}.
Telegram Auto-Topic
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.
Example
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.
Install
clawhub install itstauq/telegram-auto-topic
Or manually — clone this repo into your OpenClaw skills directory.
Prerequisites
- 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.
How It Works
- 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.
Optional configuration
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"
}
]
}
License
MIT