Skip to content

[Bug]: /voice is invisible in the Telegram command menu (not in _TELEGRAM_MENU_PRIORITY, ranks below the 30-command cap) #45175

Closed as not planned

Description

@coleharing1

What happens

After enabling TTS, /voice does not appear in Telegram's command menu, so users reasonably conclude voice is broken right after turning it on. Typing /voice manually still works.

Why

gateway/platforms/telegram.py registers only MAX_COMMANDS_PER_SCOPE = 30 commands (deliberate, for the ~4KB setMyCommands payload limit). hermes_cli/commands.py::_TELEGRAM_MENU_PRIORITY does not include voice, which ranks ~39th in the default ordering — so it falls outside the registered 30. Verified live via getMyCommands: 30 commands registered, no voice.

Suggested fix

Add "voice" to _TELEGRAM_MENU_PRIORITY. Voice/TTS controls are exactly the kind of operational command that should survive the visible-menu cap — it's the first thing a user looks for after enabling TTS. Locally adding it moves /voice to position ~22 and it shows up in the menu after a gateway restart.

Environment

v0.16.0-era build (main as of ~2026-06-12), macOS, Telegram polling mode.

Activity

  1. added
    type/bugSomething isn't working
    P3Low — cosmetic, nice to have
    comp/gatewayGateway runner, session dispatch, delivery
    comp/cliCLI entry point, hermes_cli/, setup wizard
    on Jun 12, 2026
  2. liuhao1024 commented on Jun 12, 2026

    @liuhao1024

    Fixed by #45206 — add /voice to Telegram menu priority list.

  3. teknium1 commented on Jul 14, 2026

    @teknium1
    Collaborator

    This is an automated hermes-sweeper review. The reported default Telegram menu behavior is already implemented on main through a broader fix.

    • Commit d4be583d986f7bcca4f8414fd21ef9e34b18c948 raised the default Telegram command-menu cap from 30 to 60, explicitly to keep all built-in commands visible while staying under Telegram's payload limit.
    • hermes_cli/commands.py:166 registers /voice, and hermes_cli/commands.py:911-926 builds the Telegram menu from core commands using the configured cap.
    • plugins/platforms/telegram/adapter.py:2936-2954 uses that default when registering all Telegram command-menu scopes.
    • The linked discussion PR fix(commands): add /voice to Telegram menu priority list #45206 proposed prioritizing /voice under the old 30-command default; the later cap increase resolves the user-facing symptom more generally.

    Verified as contained in release tag v2026.7.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low — cosmetic, nice to havecomp/cliCLI entry point, hermes_cli/, setup wizardcomp/gatewayGateway runner, session dispatch, deliveryplatform/telegramTelegram bot adaptersweeper:implemented-on-mainSweeper: behavior already present on current maintype/bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions