fix(commands): remove examples from command discovery

This commit is contained in:
tiennm99 committed 2026-07-21 13:52:53 +07:00
1 parent b5c7427520
commit a211b7f8b7
22 files changed
+47 -154

No files matched your search

+3 -5
View File
@@ -24,7 +24,7 @@ Telegram command names are user-facing contracts. When adding, renaming, or
deleting commands, update all related surfaces:
- module command registration in `internal/modules/<module>/`
- command parameter and example metadata used by Telegram and `/help`
- command parameter metadata used by Telegram and `/help`
- handler usage text and user-facing error text
- tests for registration, handlers, and command menu behavior
- README/docs when behavior changes are user-visible
@@ -34,10 +34,8 @@ Include units or currencies when meaningful (for example, `<vnd_amount>`), use
`[...]` for optional input, append `...` for remaining free text, and use
parentheses to document structured input (for example,
`<ratio(owned:new)>`). Keep metadata, usage errors, examples, and tests exact.
Public commands with parameters must provide an explicit copyable example;
commands without parameters must omit it. In both Telegram's native menu and
`/help`, append `Eg: <invocation>` inline; `/help` must wrap only the invocation
in Telegram HTML `<code>` formatting.
Telegram's native menu and `/help` show command syntax plus the summary without
example invocations.
## Stats Compatibility