mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-06-04 07:31:58 +00:00
feat(telegram): support quick-command-only menus
This commit is contained in:
parent
e80d3084e5
commit
b1acf80e17
7 changed files with 144 additions and 3 deletions
|
|
@ -126,6 +126,11 @@ quick_commands:
|
|||
|
||||
Then type `/status`, `/deploy`, or `/inbox` in the CLI or a messaging platform. Quick commands are resolved at dispatch time and may not appear in every built-in autocomplete/help table.
|
||||
|
||||
For specialist Telegram bots, set `telegram.command_menu: quick_commands_only`
|
||||
to make Telegram's native slash menu show only profile-defined quick commands.
|
||||
Set `show_in_telegram_menu: false` on a quick command to keep it callable but
|
||||
hide it from the Telegram menu.
|
||||
|
||||
String-only prompt shortcuts are not supported as quick commands. Put longer reusable prompts in a skill, or use `type: alias` to point at an existing slash command.
|
||||
|
||||
### Custom model aliases
|
||||
|
|
|
|||
|
|
@ -1417,6 +1417,28 @@ Usage: type `/status`, `/disk`, `/update`, `/gpu`, or `/restart` in the CLI or a
|
|||
- **Type** — supported types are `exec` and `alias`; other types show an error
|
||||
- **Works everywhere** — CLI, Telegram, Discord, Slack, WhatsApp, Signal, Email, Home Assistant
|
||||
|
||||
Telegram profiles can opt into a focused BotCommand menu that shows only
|
||||
profile-defined quick commands:
|
||||
|
||||
```yaml
|
||||
telegram:
|
||||
command_menu: quick_commands_only
|
||||
|
||||
quick_commands:
|
||||
health:
|
||||
type: exec
|
||||
command: scripts/health.sh
|
||||
description: Show service health
|
||||
internal-debug:
|
||||
type: exec
|
||||
command: scripts/debug.sh
|
||||
description: Internal debug helper
|
||||
show_in_telegram_menu: false
|
||||
```
|
||||
|
||||
`show_in_telegram_menu: false` hides a quick command from Telegram's native
|
||||
slash menu while leaving the command callable.
|
||||
|
||||
String-only prompt shortcuts are not valid quick commands. For reusable prompt workflows, create a skill or alias to an existing slash command.
|
||||
|
||||
## Human Delay
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue