feat(commands): add /test debug command that reports link parse results only

This commit is contained in:
2026-08-15 15:48:57 +08:00
parent e6ba178983
commit d0810217b4
4 changed files with 205 additions and 4 deletions
+1
View File
@@ -113,6 +113,7 @@ Telegram only accepts ports 443/80/88/8443.
| `/set_format <site> <format>` | Customize the caption format for one site. Sites: `twitter` / `bsky` / `pixiv`. Placeholders: `{url}` `{author}` `{author_url}` `{title}` `{tags}` |
| `/clear_cache [link]` | Clear the link cache (admin only); with a link only that entry, otherwise everything |
| `/bot_dict` | Show the current chat state (debugging) |
| `/test <link>` | Debug: parse a link and report the parse result only (site, title, author, tags, media list) — no media is sent |
Link processing works only in private chats; commands work in any chat.