Skip to content
Back to skills

Telegram Pairing Approver

ASecurity

创建一个持久运行的Telegram机器人服务,用于自动处理配对代码并批准Telegram会话权限。使用时提供机器人令牌,自动创建机器人脚本和服务文件,并启动系统服务。适用于需要自动处理Telegram配对请求的场景。

  • 33 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 5, 2026
toolsbashnode

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add dvcrn/openclaw-skills-marketplace --skill telegram-pairing-approver --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Telegram Pairing Approver?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Telegram Pairing Approver
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dvcrn-telegram-pairing-approver/badge)](https://www.skillsdirectory.com/skills/dvcrn-telegram-pairing-approver)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: telegram-pairing-approver
description: "创建一个持久运行的Telegram机器人服务,用于自动处理配对代码并批准Telegram会话权限。使用时提供机器人令牌,自动创建机器人脚本和服务文件,并启动系统服务。适用于需要自动处理Telegram配对请求的场景。"
---

# Telegram 配对代码自动批准机器人服务

## 快速开始

使用预构建的部署脚本快速创建服务:

```bash
node scripts/deploy.js <YOUR_BOT_TOKEN>
```

例如:
```bash
node scripts/deploy.js 9632389037:ADG3jTndsXpgdOrdJkfaV80nnsjhQyWEhbT
```

## 功能
- 自动识别三种配对代码格式:
  - `NDW4JDJ4` (纯代码格式)
  - `code: NDW4JDJ4` (带code:前缀)
  - `Pairing code: NDW4JDJ4` (带Pairing code:前缀)
- 自动执行 `openclaw pairing approve telegram <code>` 命令
- 发送友好的提示信息给用户
- 作为系统服务运行,具备自动重启功能

## 脚本说明

### 部署脚本 (`scripts/deploy.js`)
- 创建机器人脚本,自动注入提供的令牌
- 生成systemd服务文件
- 注册并启动系统服务
- 配置自动重启机制

## 服务管理

查看服务状态:
```bash
systemctl status telegram-pairing-bot.service
```

停止服务:
```bash
systemctl stop telegram-pairing-bot.service
```

重启服务:
```bash
systemctl restart telegram-pairing-bot.service
```

检查服务是否启用开机自启:
```bash
systemctl is-enabled telegram-pairing-bot.service
```

## 优势
- 高可用性:作为系统服务运行,具备自动重启能力
- 自动化:无需人工干预即可处理配对请求
- 用户友好:提供清晰的使用说明
- 可靠性:防止意外中断影响服务
- 易于部署:单命令完成完整部署

Files in this skill

  • SKILL.md1.7 KB
  • scripts/deploy.js5.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…