Setup & Installation
Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:
What This Skill Does
Configures a MoltBot agent to work inside a Telegram group chat. Patches the gateway config to add the group to the allowlist, set mention patterns from the bot's detected name and username, and restrict which senders can trigger the bot.
Automates bot name detection, config merging, and gateway restart in one step instead of requiring separate manual JSON edits and Telegram API calls.
When to use it
- Adding a MoltBot agent to a new Telegram group
- Restricting group bot responses to specific users
- Configuring a bot to reply only when explicitly mentioned
- Running two MoltBot agents in the same Telegram group
- Updating allowed senders after group membership changes
Example Workflow
Here's how your AI assistant might use this skill in practice.
User asks: Set up my bot in Telegram group -1001234567890. Allow users 123456789 and @some_user to trigger it.
- 1Reads the bot token from gateway config and calls the Telegram Bot API to get the bot's display name and @username
- 2Builds mention patterns from the bot name and username, removing duplicates
- 3Reads current gateway config and merges any existing groupAllowFrom and mentionPatterns values
- 4Applies a config patch adding the group to the allowlist, setting groupAllowFrom, and updating mentionPatterns
- 5After the gateway restarts, sends a confirmation message to the group listing the allowed users
Bot is active in the group, responds only when mentioned by name, and restricts triggers to the specified user IDs and @usernames.
Requirements
Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.