#4205: fix: move /stop to first position in bot command menu
Cluster:
Telegram Command Fixes
<img src="https://github.com/user-attachments/assets/cbf044cd-0e5a-4cb5-bf6b-fbfad058e5b4" width="300" alt="description">
Makes `/stop` the first command in the Telegram bot menu for quick access when needing to abort a running task.
Currently `/stop` is buried after help, status, tts, etc. — moving it to the top of the command list so it appears first in the bot menu.
**Note:** Telegram clients aggressively cache the bot command menu. After deploying, the new order may not appear until the user deletes and re-opens the chat with the bot.
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
This PR reorders the Telegram chat command registry so `/stop` is defined first in `buildChatCommands()`, which should cause it to appear at the top of the bot command menu in Telegram clients. No command behavior changes were introduced; the change is purely the ordering of the `stop` command entry within the static command definition list, and all existing alias/registry assertions remain in place.
<h3>Confidence Score: 5/5</h3>
- This PR is safe to merge with minimal risk.
- The change only reorders an existing command definition; it does not alter parsing, behavior, aliases, or registry validation. The file’s internal `assertCommandRegistry()` still runs, so accidental duplication would be caught at runtime/tests.
- No files require special attention
<!-- greptile_other_comments_section -->
**Context used:**
- Context from `dashboard` - CLAUDE.md ([source](https://app.greptile.com/review/custom-context?memory=fd949e91-5c3a-4ab5-90a1-cbe184fd6ce8))
- Context from `dashboard` - AGENTS.md ([source](https://app.greptile.com/review/custom-context?memory=0d0c8278-ef8e-4d6c-ab21-f5527e322f13))
<!-- /greptile_comment -->
---
lobster-biscuit
Most Similar PRs
#6457: fix(telegram): register commands for group scope + preserve topic t...
by dae-sun · 2026-02-01
77.2%
#11132: fix(telegram): guard command menu overflow and doctor warnings
by kiminbean · 2026-02-07
75.6%
#11240: Fix #10875: Clear Telegram commands before registering to prevent d...
by divol89 · 2026-02-07
73.5%
#3783: Fix/3038 cli name moltbot
by Shuimo03 · 2026-01-29
73.3%
#18254: add /update chat command for Telegram git updates
by dangmstaredu · 2026-02-16
72.5%
#5561: fix(telegram): auto-restart on timeout + lower API timeout to 60s
by jesseproudman · 2026-01-31
72.3%
#7611: fix: migrate channels.telegram.token to botToken on config load
by luiginotmario · 2026-02-03
72.2%
#10509: fix(telegram): bare abort words bypass debounce + clear buffered me...
by romancircus · 2026-02-06
71.7%
#14259: fix(discord): add timeout to restart to prevent duplicate responses
by George5562 · 2026-02-11
71.4%
#6463: fix(telegram): improve timeout handling and prevent channel exits
by ai-fanatic · 2026-02-01
71.0%