telegram-pairing-approver
创建一个持久运行的Telegram机器人服务,用于自动处理配对代码并批准Telegram会话权限。使用时提供机器人令牌,自动创建机器人脚本和服务文件,并启动系统服务。适用于需要自动处理Telegram配对请求的场景。
Why use this skill?
Automate Telegram session approvals with the telegram-pairing-approver skill. Deploy a persistent background bot to instantly authorize pairing codes.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/crazypeace/telegram-pairing-approverWhat This Skill Does
The telegram-pairing-approver skill is a specialized automation tool designed for OpenClaw users who need to manage multiple Telegram sessions efficiently. Instead of manually monitoring and typing codes whenever a new session requires authorization, this skill deploys a persistent background service (as a systemd daemon). The service acts as a Telegram bot that monitors incoming messages for pairing codes, automatically extracts them regardless of the format (raw, 'code:' prefix, or 'Pairing code:' prefix), and executes the 'openclaw pairing approve telegram <code>' command instantly. By running as a system-level service, it ensures 24/7 uptime and automatic recovery, making it an essential utility for automated infrastructure where Telegram-based authentication is frequent.
Installation
Installation is streamlined through the OpenClaw skill registry. Execute the following command in your terminal:
clawhub install openclaw/skills/skills/crazypeace/telegram-pairing-approver
Once installed, you must perform the deployment initialization to link your specific Telegram Bot Token. Navigate to the skill directory and run:
node scripts/deploy.js <YOUR_BOT_TOKEN>
This command performs the heavy lifting: it writes the operational script, generates the systemd configuration file, reloads the system daemon, and enables the service to start automatically upon system boot. You can verify the installation status by running 'systemctl status telegram-pairing-bot.service'.
Use Cases
- Automating bot farm authentication where hundreds of Telegram accounts must be authorized periodically.
- Managing high-volume OpenClaw agent clusters that rely on Telegram as their primary control interface.
- Reducing human latency in approval workflows, ensuring that sessions do not time out while waiting for administrative input.
- Simplifying DevOps workflows where developers require unattended session management for server-side agents.
Example Prompts
- "OpenClaw, setup the telegram-pairing-approver using my bot token 9632389037:ADG3jTndsXpgdOrdJkfaV80nnsjhQyWEhbT so I never have to manually approve a session again."
- "I need to check if my telegram-pairing-bot is still running correctly, can you pull the systemd status for me?"
- "The pairing service isn't picking up codes, please restart the telegram-pairing-bot.service and show me the recent logs."
Tips & Limitations
- Security: Keep your Bot Token private. Never share the token generated by BotFather in public repositories or logs. If your token is compromised, revoke it immediately via Telegram.
- Permissions: Because the skill installs a systemd service, you must have sudo or root privileges on the host machine to complete the deployment.
- Scope: This tool is specifically designed to handle 'pairing' codes. It will not handle other Telegram interactions or general chatbot tasks. If you require advanced conversational capabilities, you may need to extend the generated script or chain it with other OpenClaw skills. Monitor the logs using 'journalctl -u telegram-pairing-bot.service -f' if you encounter unexpected errors during approval flows.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-crazypeace-telegram-pairing-approver": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, file-write, external-api, code-execution
Related Skills
telegram-pairing-send-code-to-every-start
Modify OpenClaw's Telegram pairing logic so unapproved users receive pairing codes on every /start message before approval. Use when users need to repeatedly access pairing codes after the initial request, ensuring consistent access to pairing instructions even if the initial code was missed or lost.
telegram-pairing-message-customization
Add custom messages to Telegram pairing replies for unapproved users. Insert custom text (e.g., group links, instructions) above the approval command in pairing messages. Use when unpaired Telegram users need additional guidance during the pairing process.
telegram-pairing-customization
Modify OpenClaw's Telegram pairing logic so unapproved users receive pairing codes on every /start message before approval. Use when users need to repeatedly access pairing codes after the initial request, ensuring consistent access to pairing instructions even if the initial code was missed or lost.
Telethon Session
Skill by crazypeace
Openclaw Self Clone Everything
Skill by crazypeace