Problem
Related to #173.
In agentic mode, get_bot_commands() returns a hardcoded list of commands. Users who define custom slash commands (forwarded to Claude via _handle_unknown_command) have no way to make those commands appear in Telegram's / command menu without patching orchestrator.py directly.
The passthrough mechanism works great — unrecognized /commands are forwarded to Claude as natural language. But without menu visibility, users have to remember their custom commands or type them manually.
Proposed Solution
Allow users to define additional bot commands via environment variable or config file. These would be added to get_bot_commands() for menu visibility only — they would NOT be added to _known_commands, so they continue to pass through to Claude via _handle_unknown_command.
Example config approach:
CUSTOM_BOT_COMMANDS=today:Morning briefing,closeday:End of day review,capture:Quick capture
Or via a YAML/JSON config section.
I have a simpler implementation that adds specific commands directly — happy to open a PR as a starting point or discuss the config approach.
Environment
- claude-code-telegram v1.6.0
- Agentic mode enabled
Problem
Related to #173.
In agentic mode,
get_bot_commands()returns a hardcoded list of commands. Users who define custom slash commands (forwarded to Claude via_handle_unknown_command) have no way to make those commands appear in Telegram's/command menu without patchingorchestrator.pydirectly.The passthrough mechanism works great — unrecognized
/commandsare forwarded to Claude as natural language. But without menu visibility, users have to remember their custom commands or type them manually.Proposed Solution
Allow users to define additional bot commands via environment variable or config file. These would be added to
get_bot_commands()for menu visibility only — they would NOT be added to_known_commands, so they continue to pass through to Claude via_handle_unknown_command.Example config approach:
Or via a YAML/JSON config section.
I have a simpler implementation that adds specific commands directly — happy to open a PR as a starting point or discuss the config approach.
Environment