mirror of
https://github.com/tiennm99/tiennm99bot.git
synced 2026-10-11 03:13:46 +00:00
fix(commands): remove examples from command discovery
This commit is contained in:
1 parent
b5c7427520
commit
a211b7f8b7
22 files changed
+47
-154
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user