create-telegram-agent

Create a new Telegram agent in OpenClaw with proper configuration. Use when user wants to create a new Telegram bot agent, including setting up agent workspace, Telegram binding, and bot token configuration. Requires user confirmation before modifying openclaw.json.

3,891 stars

Best use case

create-telegram-agent is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Create a new Telegram agent in OpenClaw with proper configuration. Use when user wants to create a new Telegram bot agent, including setting up agent workspace, Telegram binding, and bot token configuration. Requires user confirmation before modifying openclaw.json.

Teams using create-telegram-agent should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/create-telegram-agent/SKILL.md --create-dirs "https://raw.githubusercontent.com/openclaw/skills/main/skills/4t-shirt/create-telegram-agent/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/create-telegram-agent/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How create-telegram-agent Compares

Feature / Agentcreate-telegram-agentStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Create a new Telegram agent in OpenClaw with proper configuration. Use when user wants to create a new Telegram bot agent, including setting up agent workspace, Telegram binding, and bot token configuration. Requires user confirmation before modifying openclaw.json.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# Create Telegram Agent Skill

This skill helps create a new Telegram agent with complete configuration.

## Prerequisites

Before starting, ensure you have:
1. A Telegram bot token (from @BotFather)
2. The agent's purpose/description
3. The desired agent name

## Workflow

### Step 1: Collect Required Information

Ask the user for:

1. **Agent Name** (required)
   - Must be unique
   - Use lowercase letters, digits, and hyphens
   - Examples: `healthman`, `news-bot`, `task-manager`

2. **Agent Purpose** (required)
   - What will this agent do?
   - Examples: "Personal health coach", "Daily news summarizer", "Task reminder assistant"

3. **Telegram Bot Token** (required)
   - Format: `1234567890:ABCdefGHIjklMNOpqrSTUvwxyz`
   - Get from @BotFather on Telegram

   **If user doesn't have a token, provide these steps:**

   > **How to Create a Telegram Bot Token:**
   > 1. Open Telegram and search for **@BotFather**
   > 2. Start a chat with BotFather and send `/newbot`
   > 3. Follow the prompts:
   >    - Enter a **name** for your bot (display name, e.g., "CookMaster")
   >    - Enter a **username** for your bot (must end in 'bot', e.g., "cookmaster_bot")
   > 4. BotFather will send you a message containing your **HTTP API token**
   > 5. Copy the token (format: `1234567890:ABCdefGHIjklMNOpqrSTUvwxyz`)
   >
   > **Important:** Keep your token secure. Anyone with your token can control your bot.

### Step 2: Generate Agent Configuration

Based on user input, prepare the following configurations:

#### Agent Definition
```json
{
  "id": "<agent-id>",
  "name": "<Agent Name>",
  "workspace": "/Users/<user>/.openclaw/workspace-<agent-id>",
  "agentDir": "/Users/<user>/.openclaw/agents/<agent-id>/agent"
}
```

#### Telegram Binding
```json
{
  "agentId": "<agent-id>",
  "match": {
    "channel": "telegram",
    "accountId": "<bot-id>"
  }
}
```

#### Telegram Bot Account
```json
"<bot-id>": {
  "enabled": true,
  "dmPolicy": "pairing",
  "botToken": "<full-bot-token>",
  "groupPolicy": "allowlist",
  "streamMode": "partial"
}
```

### Step 3: Present Configuration for Review

**CRITICAL: DO NOT MODIFY openclaw.json DIRECTLY**

Present the following to the user in a clear format:

---

## 📋 Configuration Summary

The following changes will be made to `openclaw.json`:

### 1. Agent Definition (add to agents.list)
```json
{
  "id": "<agent-id>",
  "name": "<Agent Name>",
  "workspace": "/Users/<user>/.openclaw/workspace-<agent-id>",
  "agentDir": "/Users/<user>/.openclaw/agents/<agent-id>/agent"
}
```

### 2. Telegram Binding (add to bindings)
```json
{
  "agentId": "<agent-id>",
  "match": {
    "channel": "telegram",
    "accountId": "<bot-id>"
  }
}
```

### 3. Telegram Bot Account (add to channels.telegram.accounts)
```json
"<bot-id>": {
  "enabled": true,
  "dmPolicy": "pairing",
  "botToken": "<full-bot-token>",
  "groupPolicy": "allowlist",
  "streamMode": "partial"
}
```

---

### 4. Agent Responsibilities (suggested for AGENTS.md)

Based on the provided purpose, generate a responsibility description covering:
- Core functions of the agent
- Working methodology
- Relationship with the user

---

**Please confirm to proceed with the modifications. Any adjustments needed?**

### Step 4: Wait for User Confirmation

Only proceed after user explicitly confirms (e.g., "confirm", "proceed", "execute", "go ahead").

### Step 5: Execute Configuration

Once confirmed:

1. **Create directories:**
   ```bash
   mkdir -p /Users/<user>/.openclaw/workspace-<agent-id>
   mkdir -p /Users/<user>/.openclaw/agents/<agent-id>/agent
   ```

2. **Update openclaw.json:**
   - Add agent to `agents.list`
   - Add binding to `bindings`
   - Add bot account to `channels.telegram.accounts`

3. **Create agent files:**
   - `AGENTS.md` - Work responsibilities and workflow
   - `SOUL.md` - Agent personality and values

4. **Report completion:**
   - Show summary of what was created
   - Remind user to restart OpenClaw gateway (if applicable)
   - Provide next steps (e.g., test the bot)

## Important Rules

1. **Never modify openclaw.json without explicit user confirmation**
2. **Always show the complete configuration changes before applying**
3. **Extract bot ID from token** (the number before the colon)
4. **Create all necessary directories** before writing files
5. **Generate appropriate AGENTS.md and SOUL.md** based on the agent's purpose

Related Skills

Telegram Bot间群聊通信技能

3891
from openclaw/skills

**创建时间**: 2026-02-20 11:03 UTC+8

Communication

Telegram Shop Bot Developer - Python

3891
from openclaw/skills

I develop fully-featured Telegram shop bots using Python. My bots manage products, orders, and customers professionally.

Auto Create AI Team

3891
from openclaw/skills

## Description

node-telegram-cli

3891
from openclaw/skills

CLI tool for Telegram via MTProto. Send/read messages, manage groups, search conversations, download media, and automate Telegram workflows. Use when the task involves any Telegram account interaction.

telegram-groupchat-setup

3891
from openclaw/skills

Configure a MoltBot agent to participate in a Telegram group chat. Automates adding the group to the allowlist, setting mention patterns, and configuring sender permissions — all via a single gateway config patch. Use when the user wants to set up their bot in a Telegram group, enable cross-bot communication, or configure group mention gating.

create-task

3891
from openclaw/skills

Create a new task with a crypto bounty on OpenAnt. Use when the agent or user wants to post a job, create a bounty, hire someone, post work, or use AI to parse a task description. Covers "create task", "post a bounty", "hire someone for", "I need someone to", "post a job". Funding escrow is included by default.

create-subagent

3891
from openclaw/skills

创建和管理 SubAgent(子智能体)。使用当用户需要:(1) 创建新的 SubAgent 执行特定任务,(2) 查看/管理已有的 SubAgent,(3) 终止或指导 SubAgent。支持多种预设类型:开发、研究、写作、数据分析等。

create-dxf

3891
from openclaw/skills

Create RFQ-ready 2D DXF (and optional SVG preview) files from a strict, validated JSON spec derived from a natural-language design prompt. Use for sheet/plate parts (waterjet/laser/router) like mounting plates, gussets, brackets, hole patterns, and slots.

telegram-business

3891
from openclaw/skills

Telegram bot for business automation — lead capture forms, inline keyboard menus, FAQ matching, appointment booking flows, and payment integration. Use for building customer-facing Telegram bots, community management, and lead generation.

🦞 Telegram 跨实例通信指南

3891
from openclaw/skills

让龙虾之间能准确聊天、艾特、跨 bot 通信。

Telegram Marketing Audit Command Handler Skill

3891
from openclaw/skills

## Purpose

toingg-create-campaign

3891
from openclaw/skills

End-to-end Toingg ops: create campaigns, (optionally) schedule daily analytics pulls, and turn Excel contact sheets into WhatsApp outreach via add_contacts + send_whatsapp_templates. Use when Codex needs to automate Toingg voice/WhatsApp workflows and requires scripts for campaign POSTs, analytics cron setup, or bulk contact uploads.