johnalbertini14-glitch/openclaw-skills/telegram-auto-topic
Claude Code and agent skill by johnalbertini14-glitch/openclaw-skills
- community
Checking that the SKILL.md file is still in the repository.
Author "johnalbertini14-glitch" has blocked skill(s)
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/telegram-auto-topic
Install
npx vskill@latest install johnalbertini14-glitch/openclaw-skills/telegram-auto-topicSKILL.md
The same SKILL.md was published earlier as johnalbertini14-glitch/openclaw-skills/telegram-auto-topic.
Telegram Auto-Topic
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.
Prerequisites
- The group must be configured in OpenClaw (
channels.telegram.groups.<CHAT_ID>) — this is how OpenClaw knows to process messages from it. - The group must have forum/topics enabled.
- Your bot must be an admin in the group with Manage Topics permission.
Handling /topic
When a message starts with /topic:
- Generate a concise 3-7 word title summarising the message.
- Run the script — replace placeholders with actual values from the message context:
`` 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.
- The script returns JSON with
topic_id,title, andlink. - Reply to the original message with:
Topic created → [<title>](<link>) - Then send a response to the actual message content in the NEW topic (use message tool with
threadIdfrom the returnedtopic_id). Respond naturally as you would to any message. - After both replies are sent, respond with NO_REPLY.
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.
Script Reference
| 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/..."}
Optional configuration
Skip the @bot mention — by default, the bot only responds when mentioned. To use /topic without mentioning the bot:
Telegram autocomplete — to get /topic in Telegram's command menu, add under channels.telegram:
Limitations
- Attribution: Quoted messages appear as sent by the bot (Telegram API limitation). Sender name is included as attribution text below the quote.
- Media: Forwarded media shows a "Forwarded from" header — best available but not native.
- Forum groups only: Won't work in regular groups or DMs.
- Permissions: Bot needs admin with Manage Topics.
- Title length: Telegram caps topic names at 128 characters.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/itstauq/telegram-auto-topic/SKILL.md
Popularity
- Repository stars
- 2
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/johnalbertini14-glitch/openclaw-skills/telegram-auto-topic)