QQ URL Guard
Use this skill for QQ outbound replies (private/group/guild) when content may contain URL-like tokens.
Why
QQ may reject messages with:
code(40034028)请求参数不允许包含url
Common risky patterns:
xx.xx(domain-like text)USER.md/README.md(file-like token treated as URL)- markdown links:
[text](https://...) - plain URLs:
https://.../www...
Output Rules
- Prefer plain text over markdown for QQ replies.
- Avoid raw URL-like strings in final QQ message.
- Replace risky parts with safe placeholders when needed:
- URL ->
[link] .mdtoken ->[file]
- URL ->
- Keep the sentence readable after replacement.
Safe Rewrite Examples
Source: USER.md->Source: [file]详情见 https://example.com->详情见 [link][文档](https://example.com)->文档(链接已省略)
Operator Hint
If QQ send fails with 40034028, retry with sanitized plain text immediately.