feat: add project aliases to telegram command menu (#67)

This commit is contained in:
banteg
2026-01-08 11:26:09 +04:00
committed by GitHub
parent d606833603
commit c0579a4ebd
4 changed files with 91 additions and 6 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ The Telegram adapter module containing:
- `/cancel` routes by reply-to progress message id (accepts extra text)
- `/{engine}` on the first line selects the engine for new threads
- Resume parsing polls all runners via `AutoRouter.resolve_resume()` and routes to the first match
- Bot command menu is synced on startup (`cancel` + engine commands)
- Bot command menu is synced on startup (`cancel` + engine + project commands, capped at 100)
### `transport.py` - Transport protocol
+4
View File
@@ -362,8 +362,12 @@ Takopi SHOULD keep the bots slash-command menu in sync at startup by calling
* The command list MUST include:
* `cancel` — cancel the current run
* one entry per configured engine
* one entry per configured project alias that is a valid Telegram command
* The command list MUST NOT include commands the bot does not support.
* Command descriptions SHOULD be terse and lowercase.
* The command list SHOULD be capped at 100 entries per Telegram's limit; if the
config exceeds that limit, implementations SHOULD warn and truncate while
still handling all commands at runtime.
## 9. Testing requirements (MUST)