itstauq

Telegram Auto Topic

AIエージェントv0.1.8
作者:itstauq更新日 2026-05-11全 9 バージョン · 最新版の公開日 2026-02-12telegram-auto-topic@clawhub_itstauq/telegram-auto-topic
タスク自動化#Telegram#Message

AlphaMoatによると、2026-09時点でTelegram Auto Topicのダウンロード数は4,489、スター数は3で、AIスキル全体5,078件中2,150位、AIエージェントでは969件中410位です。

インストール数
573
ダウンロード数
4489
スター数
3
総合順位
#2,150
全体の上位 43% · AIエージェントの上位 43%
プラットフォームインストール数ダウンロード数スター数コメント
ClawHub ↗13839543-
SkillHub ↗57344893—

プラットフォームごとに集計方法と集計時点が異なります。

このスキルでできること

グループで /topic から始まるメッセージを送ると、その内容から新しいトピックが作られ、題名はメッセージから自動で決まるので自分で考える必要はありません。前提は三つで、グループが OpenClaw のチャンネル設定に登録されていること、グループでトピックが有効なこと、bot がトピック管理の権限を持つ管理者であることです。 必要な group 権限だけを持つ専用 bot token を使い、OpenClaw config を保護してください。広く使う前に command の token 処理を確認します。対象 group で forum topic が有効で、bot が管理者として Manage Topics 権限を持つことを確認してください。

資料公開日 2026-10-27

できること

  • 一つの議論を独立したトピックに分ける
  • 内容に合わせた名前のトピックをすぐ作る

使う場面

  • グループの話題が多く分類したいとき
  • 題名を手で考えたくないとき

プロンプト例

スキルのドキュメントをもとに生成した例であり、実際の実行結果ではありません。

このメッセージでグループに新しいトピックを立ててください
今週の議論を話題ごとに分けてください

月次の推移

ダウンロード数4489
3401398645702026-03 · ダウンロード数 34822026-05 · ダウンロード数 37212026-06 · ダウンロード数 35902026-07 · ダウンロード数 39342026-08 · ダウンロード数 40492026-09 · ダウンロード数 448926-0326-09
スター数3
2342026-03 · スター数 32026-05 · スター数 32026-06 · スター数 32026-07 · スター数 32026-08 · スター数 32026-09 · スター数 326-0326-09

2026-09 から集計方法を変更し、同名スキルを作者ごとに分けて集計し、全スキルを対象にしました。破線は変更前の月で、変更後のデータとは直接比較せず、変更をまたぐ増減も計算していません。

月ダウンロード数前月比スター数
2026-094489—3
2026-084049+2.9%3
2026-073934+9.6%3
2026-063590-3.5%3
2026-053721—3
2026-033482—3

SKILL.md 原文

作者が公開した元のファイルをテキストのまま表示しています。AlphaMoat による編集や審査はしていません。リンクはクリックできません。コマンドは内容を確認してから実行してください。取得日 2026-10-23。

4.0 KB・ClawHub v0.1.8
---
name: telegram-auto-topic
description: >
  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
metadata:
  openclaw:
    requires:
すべて表示(全 109 行)
      config:
        - ~/.openclaw/openclaw.json
      env:
        - OPENCLAW_CONFIG
      bins:
        - curl
        - jq
---

# 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`:

1. Generate a concise 3-7 word title summarising the message.
2. 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.
3. The script returns JSON with `topic_id`, `title`, and `link`.
4. Reply to the original message with: `Topic created → [<title>](<link>)`
5. Then send a response to the actual message content in the NEW topic (use message tool with `threadId` from the returned `topic_id`). Respond naturally as you would to any message.
6. After both replies are sent, respond with NO_REPLY.

## 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.

## Script Reference

```bash
scripts/telegram-auto-topic.sh <chat_id> <message_id> <sender> [title] [text]
```

| 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:

```json
"channels.telegram.groups.<CHAT_ID>": {
  "requireMention": false
}
```

**Telegram autocomplete** — to get `/topic` in Telegram's command menu, add under `channels.telegram`:

```json
{
  "customCommands": [
    {
      "command": "topic",
      "description": "Create a new forum topic from a message"
    }
  ]
}
```

## 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.

AIエージェントの人気スキル

データ月:2026-09 · ダウンロード数、スター数、インストール数は公開スキルレジストリ(ClawHub、SkillHub)から月単位で集計しています。詳しくはデータの方法論をご覧ください。