Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计通过

telegram-agent-setupTelegram Agent 设置

Agent Skill

telegram-agent-setup 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,840

周安装

116

GitHub Stars

公开资料未说明

下载量

919
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:telegram-agent-setup(Telegram Agent 设置)
来源仓库:https://github.com/mosoonpi-ai/telegram-agent-setup
安装命令:
openclaw skills install telegram-agent-setup
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install telegram-agent-setup

简介

telegram-agent-setup 提供 OpenClaw 与 Telegram 集成的完整配置指南。

  • 支持机器人设置、频道管理、媒体处理和内联按钮交互。
  • 帮助用户快速搭建 Telegram 自动化工作流。
  • 使用前需确认 API 令牌权限与数据访问边界。
  • 建议参考官方文档完成初始配置后再部署技能。telegram-agent-setup 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
telegram-agent-setup
description
Complete guide to connecting OpenClaw with Telegram. Set up bot, configure channels, handle groups/topics, voice messages, inline buttons, media, and troubleshoot common issues. Use when setting up a new Telegram bot for OpenClaw or debugging connection problems.
version
1.0.1
author
mosoonpi-ai
license
MIT
tags
telegram, bot, setup, messaging, channels, voice, groups

Telegram Agent Setup — Connect OpenClaw to Telegram

What You Get

  • ⏱️ Working bot in 15 minutes instead of 3+ hours reading scattered docs
  • 🔒 Security lockdown — stop strangers from using your bot (most guides skip this)
  • 👥 Group & forum support — route topics to different agents
  • 🎤 Voice messages working — full STT setup with faster-whisper
  • 🔧 15+ troubleshooting fixes — every problem we've hit running 5 production bots
  • Production checklist — 8-point verification before going live

When to Use

  • Setting up a new Telegram bot for OpenClaw
  • Configuring group chats, forum topics, or private chats
  • Troubleshooting connection issues (bot not responding, messages not arriving)
  • Setting up voice messages (STT transcription)
  • Configuring inline buttons, reactions, and media handling
  • Moving from basic setup to production-ready configuration

Prerequisites

  • OpenClaw installed and running (openclaw gateway status shows OK)
  • Telegram account
  • Access to @BotFather on Telegram

Step 1: Create a Telegram Bot

  1. Open Telegram, find @BotFather
  2. Send /newbot
  3. Choose a display name (e.g., "My AI Assistant")
  4. Choose a username (must end in bot, e.g., my_ai_assistant_bot)
  5. Copy the API token (looks like 7123456789:AAH...)

Important BotFather Settings

/setprivacy → Disable (so bot sees all messages in groups)
/setjoingroups → Enable (if you want to add bot to groups)
/setcommands → Set your commands:
  start - Start the bot
  help - Show help
  status - Check status

Step 2: Connect to OpenClaw

Method A: CLI (recommended)

openclaw telegram setup

Follow the interactive prompts. Paste your bot token when asked.

Method B: Manual config

Edit ~/.openclaw/openclaw.json:

{
  "channels": {
    "telegram": {
      "enabled": true,
      "botToken": "YOUR_BOT_TOKEN_HERE",
      "allowedChatIds": []
    }
  }
}

Then restart:

openclaw gateway restart

Step 3: Verify Connection

  1. Open your bot in Telegram
  2. Send /start or any message
  3. Bot should respond

If no response:

openclaw gateway status
openclaw gateway logs --tail 50

Step 4: Security — Restrict Access

Critical. Without this, anyone who finds your bot can use your Claude subscription.

{
  "channels": {
    "telegram": {
      "allowedChatIds": ["YOUR_TELEGRAM_USER_ID"],
      "rejectUnknown": true
    }
  }
}

Find your user ID: message @userinfobot on Telegram.

Step 5: Group Chat Setup

Regular group

  1. Add bot to group
  2. Get group chat ID from logs: openclaw gateway logs | grep "chat_id"
  3. Add to allowedChatIds (group IDs are negative: -1001234567890)

Forum (topics) group

  • Each topic gets its own topic_id
  • Route different topics to different agents
  • Perfect for multi-agent setups (see multi-agent-architecture skill)

Response behavior in groups

{
  "groupBehavior": {
    "respondTo": "mention"
  }
}

Options: "all" (every message), "mention" (when tagged — recommended), "command" (only /commands).

Step 6: Voice Messages

Quick STT setup with faster-whisper:

python3 -m venv ~/.openclaw/venvs/stt-tools
source ~/.openclaw/venvs/stt-tools/bin/activate
pip install faster-whisper

Model sizes: tiny (fast, ~1GB RAM), base (better, ~2GB), small (best, ~4GB).

Create scripts/transcribe_audio.py:

#!/usr/bin/env python3
import sys
from faster_whisper import WhisperModel

def transcribe(audio_path, model_size="tiny", language="ru"):
    model = WhisperModel(model_size, device="cpu", compute_type="int8")
    segments, _ = model.transcribe(audio_path, language=language)
    print(" ".join(seg.text.strip() for seg in segments))

if __name__ == "__main__":
    transcribe(sys.argv[1],
               sys.argv[2] if len(sys.argv) > 2 else "tiny",
               sys.argv[3] if len(sys.argv) > 3 else "ru")

Troubleshooting

Bot not responding

  1. openclaw gateway status — is it running?
  2. openclaw gateway logs --tail 100 | grep -i error — any errors?
  3. Check bot token — no extra spaces?
  4. Check firewall — outbound HTTPS (port 443) open?

Bot responds to strangers

→ Add allowedChatIds + rejectUnknown: true

Messages delayed

→ Check server load (htop), check for rate limits in logs

Voice not transcribed

→ Check STT venv exists and faster-whisper installed → Telegram sends .ogg (opus) — faster-whisper handles it natively

"Webhook" vs "Polling"

→ OpenClaw uses long polling by default (no public IP needed)

Production Checklist

  • [ ] Bot token stored securely (not in git, not in chat)
  • [ ] allowedChatIds configured
  • [ ] rejectUnknown: true enabled
  • [ ] Error policy: "silent" (no error messages to users)
  • [ ] Voice transcription working (if needed)
  • [ ] Group privacy mode disabled in BotFather (if using groups)
  • [ ] Bot commands registered via BotFather
  • [ ] Gateway auto-restarts on failure

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

86.74%
按下载量换算797

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills