Telegram Pairing Customization for Openclaw

A technical modification for Openclaw Skills that ensures Telegram users can retrieve their pairing code multiple times before approval.

crazypeace
v1.0.4
Feb 8, 2026
0
1.9k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install telegram-pairing-customization

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install telegram-pairing-customization using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Telegram Pairing Customization?

This skill provides a step-by-step guide to modifying the internal pairing logic of the Openclaw gateway. By default, the system only sends a pairing code the first time a user interacts with the bot. This customization allows the system to resend the code whenever an unapproved user sends a /start message, significantly improving the onboarding experience for Openclaw Skills users.

This is particularly useful in environments where users might accidentally clear their chat history or miss the initial automated response. By adjusting the logical check from a creation event to a code existence check, developers can ensure persistent access to setup instructions without compromising the security of the approval workflow.

Telegram Pairing Customization Use Cases

  • Users miss or delete the initial pairing code response from the Telegram bot.
  • Improving the reliability of the onboarding workflow for new Openclaw Skills implementations.
  • Ensuring that unapproved users have a consistent way to retrieve their pairing instructions without manual admin intervention.

How Telegram Pairing Customization Works

  1. The user sends a /start command to the Telegram bot connected to Openclaw.
  2. The backend calls upsertTelegramPairingRequest, which returns the current pairing code and a boolean indicating if it was just created.
  3. The modified logic checks for the existence of the code itself rather than just the creation event.
  4. If a valid, unapproved code exists, the bot sends the pairing instructions and the specific CLI command needed for approval to the user.

Telegram Pairing Customization Setup

To apply this customization to your Openclaw Skills setup, follow these steps:

  1. Locate the Openclaw installation directory, typically found at /usr/lib/node_modules/openclaw/.
  2. Search for the string Ask the bot owner to approve with: to find the relevant logic file.
  3. Locate the code block containing if (created) and change the condition to if (code).
  4. Restart the gateway service to apply changes:
openclaw gateway restart

Telegram Pairing Customization Data Schema & Taxonomy

The pairing logic within Openclaw Skills utilizes the following data structure during the registration handshake:

Attribute Description
code The persistent pairing code generated for the specific Telegram User ID.
created A boolean flag indicating if the pairing request was newly generated in the current session.
chatId The unique identifier for the Telegram conversation.
username The Telegram handle of the user requesting access.

By switching the logic to check for the code attribute, the system serves existing pending codes regardless of the created status.

Telegram Pairing Customization Advanced Features

  • Persistent pairing code retrieval for unapproved sessions.
  • Automated formatting of CLI approval commands for bot owners.
  • Multi-session support allowing users to request instructions from different devices before approval.
  • Seamless integration with existing Openclaw Skills gateway logging and error handling.

SKILL.md


Loading

Related Openclaw Skills

Featured*