Skip to content

itstauq/telegram-auto-topic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Auto-Topic

An OpenClaw skill that turns Telegram messages into forum topics instantly.

GitHub Twitter Follow

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

demo.mov

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.

Permissions

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.

How It Works

  1. You send a message starting with /topic
  2. A new forum topic is created — titled from your message automatically
  3. Your message is quoted in the new topic with your name
  4. You get a reply with a clickable link to the new topic
  5. 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

About

OpenClaw skill: Add /topic to any message in a Telegram forum group to auto-create a new topic from it

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages