Skip to content

fix(gateway): handle Telegram start command#22378

Open
tzedekr wants to merge 1 commit into
NousResearch:mainfrom
tzedekr:cole/telegram-start-command
Open

fix(gateway): handle Telegram start command#22378
tzedekr wants to merge 1 commit into
NousResearch:mainfrom
tzedekr:cole/telegram-start-command

Conversation

@tzedekr

@tzedekr tzedekr commented May 9, 2026

Copy link
Copy Markdown

Summary

  • Add /start as a gateway-known Telegram command with quick-start guidance instead of rejecting Telegram's Start button.
  • Keep /start non-destructive: it gives usage guidance rather than resetting the current session.
  • Force the Telegram chat menu button to command mode on connect, best-effort, while preserving command registration if the menu-button call fails.
  • Add focused tests for command menu registration, menu-button failure tolerance, and /start menu visibility.

Verification

  • /Users/colecarden/.hermes/hermes-agent/.venv/bin/python -m py_compile hermes_cli/commands.py gateway/run.py gateway/platforms/telegram.py
  • PYTHONPATH=/tmp/hermes-telegram-start-pr /Users/colecarden/.hermes/hermes-agent/.venv/bin/python -m pytest tests/gateway/test_telegram_command_menu.py -q — 3 passed
  • git diff --check origin/main..HEAD
  • Privacy/secret blocker scan on outgoing commit diff — clean

Notes

  • Clean branch from current origin/main; excludes the TUI transcript-tail fix and unrelated local Hermes commits.

(cherry picked from commit 52ecd774cdf59e55971e1d8c1e0cb601f07b044c)
(cherry picked from commit c755bb0aa54e6fca410def2934d711d2ded6caba)
@alt-glitch alt-glitch added type/feature New feature or request P3 Low — cosmetic, nice to have comp/gateway Gateway runner, session dispatch, delivery platform/telegram Telegram bot adapter labels May 9, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Duplicate of #20449 (and #11640, #18781). Same feature: handle Telegram /start command in gateway.

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

Labels

comp/gateway Gateway runner, session dispatch, delivery P3 Low — cosmetic, nice to have platform/telegram Telegram bot adapter type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants