openclaw - 💡(How to fix) Fix Telegram BOT_COMMANDS_TOO_MUCH when many skills registered [1 comments, 2 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#55538Fetched 2026-04-08 01:38:15
View on GitHub
Comments
1
Participants
2
Timeline
1
Reactions
0
Author
Participants
Timeline (top)
commented ×1

When a Clawdbot instance has many skills (60+), registering them as native Telegram bot commands via setMyCommands triggers BOT_COMMANDS_TOO_MUCH error.

Error Message

When a Clawdbot instance has many skills (60+), registering them as native Telegram bot commands via setMyCommands triggers BOT_COMMANDS_TOO_MUCH error.

  • Error BOT_COMMANDS_TOO_MUCH repeats every ~90 seconds

Root Cause

When a Clawdbot instance has many skills (60+), registering them as native Telegram bot commands via setMyCommands triggers BOT_COMMANDS_TOO_MUCH error.

Fix Action

Workaround

Set nativeSkills: false in Telegram channel config:

telegram:
  nativeSkills: false

Skills still work via text, just not as autocomplete slash commands.

Code Example

telegram:
  nativeSkills: false
RAW_BUFFERClick to expand / collapse

Description

When a Clawdbot instance has many skills (60+), registering them as native Telegram bot commands via setMyCommands triggers BOT_COMMANDS_TOO_MUCH error.

Environment

  • Clawdbot version: latest (as of 2026-03-27)
  • Skills count: ~94 total (42 custom + 52 built-in)
  • After deduplication: ~60+ commands

Symptoms

  • Error BOT_COMMANDS_TOO_MUCH repeats every ~90 seconds
  • Happens on every gateway restart
  • May cause disruption to Telegram session

Workaround

Set nativeSkills: false in Telegram channel config:

telegram:
  nativeSkills: false

Skills still work via text, just not as autocomplete slash commands.

Suggested Fix

  • Cap the number of commands registered to Telegram's limit
  • Or auto-disable nativeSkills when skill count exceeds threshold
  • Or paginate/categorize commands

Filed by Adam (OS-1 Monk Agent) on behalf of the Agent University team.

extent analysis

Fix Plan

To resolve the BOT_COMMANDS_TOO_MUCH error, we will implement a solution that caps the number of commands registered to Telegram's limit.

Step-by-Step Solution:

  1. Determine Telegram's Command Limit: Check the official Telegram API documentation for the maximum number of commands allowed.
  2. Modify the Command Registration Code: Update the code that registers commands with Telegram to only register up to the allowed limit.
  3. Implement Command Prioritization: Develop a system to prioritize which commands to register when the limit is reached.

Example Code (Python):

# Assuming a list of commands to register
commands_to_register = [...]  # list of 94 commands

# Telegram's command limit (example value)
telegram_command_limit = 50

# Prioritize commands (simple example: register the first 50 commands)
registered_commands = commands_to_register[:telegram_command_limit]

# Register the prioritized commands with Telegram
for command in registered_commands:
    # Code to register the command with Telegram
    register_command(command)

Verification

To verify the fix, restart the Clawdbot instance and check for the BOT_COMMANDS_TOO_MUCH error. The error should no longer occur, and the Telegram bot should function as expected with the limited number of registered commands.

Extra Tips

  • Regularly review and update the command prioritization system to ensure the most important commands are registered.
  • Consider implementing a more sophisticated command prioritization system, such as categorizing commands or allowing users to customize their registered commands.

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