openclaw - 💡(How to fix) Fix [Feature]: Disable /help commands in certain channels [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#52218Fetched 2026-04-08 01:14:07
View on GitHub
Comments
0
Participants
1
Timeline
1
Reactions
0
Participants
Timeline (top)
labeled ×1

Is it possible to hide /help command in certain channels eg telegram. i want to be able to control which / commands are available via telegram but the /help one is always available regardless via openclaw. I dont want this available for my users to use

Root Cause

Is it possible to hide /help command in certain channels eg telegram. i want to be able to control which / commands are available via telegram but the /help one is always available regardless via openclaw. I dont want this available for my users to use

RAW_BUFFERClick to expand / collapse

Summary

Is it possible to hide /help command in certain channels eg telegram. i want to be able to control which / commands are available via telegram but the /help one is always available regardless via openclaw. I dont want this available for my users to use

Problem to solve

it solves surfacing extra commands and functionality to users in channels that should not have that access

Proposed solution

have an option to disable it at the channel instance level

Alternatives considered

No response

Impact

Will allow new solutions that can be restricted for clients

Evidence/examples

No response

Additional information

No response

extent analysis

Fix Plan

To hide the /help command in certain channels, we can implement a channel-specific command filtering mechanism. Here are the steps:

  • Add a disabled_commands field to the channel configuration, which will store a list of commands to be disabled in that channel.
  • Modify the command handler to check if the /help command is in the disabled_commands list for the current channel before executing it.

Example Code

# Channel configuration
channel_config = {
    'channel_id': 'telegram',
    'disabled_commands': ['/help']
}

# Command handler
def handle_command(command, channel_id):
    channel_config = get_channel_config(channel_id)
    if command in channel_config.get('disabled_commands', []):
        return 'Command not available in this channel'
    # Execute the command if it's not disabled
    if command == '/help':
        return 'Help command executed'
    # Handle other commands

# Get channel configuration
def get_channel_config(channel_id):
    # Return the channel configuration for the given channel ID
    return channel_config

Verification

To verify that the fix worked, you can test the /help command in a channel where it's disabled and ensure that it returns the expected error message. You can also test other commands to ensure they're still working as expected.

Extra Tips

  • Make sure to update the channel configuration to include the disabled_commands field for each channel where you want to disable certain commands.
  • You can also add a global disabled_commands list to disable certain commands across all channels.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING