Telegram Group Chat Setup for Openclaw

Automate the complex configuration required to deploy and manage MoltBot agents within Telegram group chat environments.

arekqq
v1.0.0
Feb 4, 2026
0
2.6k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install tg-groupchat-setup

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 tg-groupchat-setup 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 Group Chat Setup?

The Telegram Group Chat Setup skill is a specialized automation tool designed to bridge the gap between a MoltBot agent and Telegram group dynamics. It eliminates the manual overhead of editing configuration files by programmatically handling group allowlisting, security permissions, and mention-based triggering. By leveraging the Openclaw Skills ecosystem, developers can ensure their bots are correctly identified by the Telegram API and only respond to authorized users.

This skill is particularly valuable for maintainers who need to manage bot noise in busy groups. It configures the gateway to require explicit mentions and validates sender IDs, ensuring the agent remains a productive and secure member of the group chat without leaking resources to unauthorized triggers.

Telegram Group Chat Setup Use Cases

  • Deploying a MoltBot agent into a secure Telegram group with restricted access.
  • Configuring multi-bot environments where specific mention patterns are required for cross-bot communication.
  • Automating the gateway patch process for new group IDs and authorized user lists.
  • Transitioning a bot from private messaging to group-based workflows with optimized mention detection.

How Telegram Group Chat Setup Works

  1. The skill initiates a detection script to fetch the bot's name and username via the Telegram Bot API.
  2. It dynamically generates a list of mention patterns (regex) based on the bot's identity to ensure responsive interaction.
  3. The skill reads the current gateway configuration to identify existing group policies and allowed users.
  4. It generates a configuration patch that merges new group IDs and user permissions into the existing JSON structure.
  5. The gateway tool applies the patch and restarts the service to finalize the Telegram group integration.

Telegram Group Chat Setup Setup

Before executing this skill, ensure the bot is added to your Telegram group and Privacy Mode is disabled via @BotFather. To configure the bot, identify your Telegram group ID and the user IDs of authorized members. Run the following command to detect bot information:

bash skills/groupchat-setup/scripts/detect_bot_info.sh

Once bot info is gathered, provide the group ID and allowed users to the Openclaw Skills agent to trigger the automated gateway patching process.

Telegram Group Chat Setup Data Schema & Taxonomy

The skill manages configuration data within the gateway's JSON schema, primarily targeting the Telegram channel and message segments:

Component Key Purpose
channels.telegram.groups requireMention Boolean flag to toggle mention-only responses.
channels.telegram groupAllowFrom An array of strings containing authorized user IDs or @usernames.
messages.groupChat mentionPatterns A list of regex strings identifying the bot's name and username.
gateway config.patch The operational method used to update the persistent configuration.

Telegram Group Chat Setup Advanced Features

  • Intelligent configuration merging to prevent overwriting existing group settings or user permissions.
  • Automatic regex normalization for bot names and usernames to improve mention detection accuracy.
  • Support for negative integer group IDs required by the Telegram protocol.
  • Verification workflows that send a confirmation message to the group once the Openclaw Skills patch is successfully applied.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*