mirror of
https://github.com/tiennm99/tiennm99bot.git
synced 2026-10-14 16:18:07 +00:00
feat(commands): improve discovery and normalize parameters
This commit is contained in:
1 parent
3316eec74c
commit
f5ba9d4032
31 files changed
+479
-56
No files matched your search
@@ -38,7 +38,9 @@ type CronHandler func(ctx context.Context, deps Deps) error
|
||||
type Command struct {
|
||||
Name string // ^[a-z0-9_]{1,32}$ — Telegram BotFather rules
|
||||
Visibility Visibility // public/protected/private
|
||||
Description string // shown in /help (required, non-empty)
|
||||
Description string // concise summary shown in command discovery (required, non-empty)
|
||||
Parameters string // optional syntax after the command, e.g. "<quantity> <ticker>"
|
||||
Example string // optional full invocation; defaults to "/" + Name
|
||||
Handler CommandHandler // required
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user