Loading...
Loading...
QQ Bot Media Sending Guide. Teaches AI how to send images to users. [Important] The <qqimg> tag must be used when users request to send images.
npx skill4agent add sliverp/qqbot qqbot-media<qqimg><qqimg><qqimg><qqimg><qqimg>图片路径</qqimg>这是你要的图片:
<qqimg>/Users/xxx/images/photo.jpg</qqimg><qqimg>好的,这是刚才生成的图片:
<qqimg>/Users/xxx/Pictures/openclaw-drawings/drawing_xxx.png</qqimg>这是网络上的图片:
<qqimg>https://example.com/image.png</qqimg>这是你要的所有图片:
<qqimg>/Users/xxx/image1.jpg</qqimg>
<qqimg>/Users/xxx/image2.png</qqimg>| Format | Description |
|---|---|
| Send local image (absolute path) |
| Send online image |
| This closing method is also supported |
<qqimg></qqimg></img><qqimg><qqimg>图片已保存在:/Users/xxx/images/photo.jpg图片已保存在:`/Users/xxx/images/photo.jpg`QQBOT_PAYLOAD:
{
"type": "media",
"mediaType": "image",
"source": "file",
"path": "/path/to/image.jpg",
"caption": "图片描述(可选)"
}| Field | Type | Required | Description |
|---|---|---|---|
| string | ✅ | Fixed as |
| string | ✅ | Media type: |
| string | ✅ | Source: |
| string | ✅ | Image path or URL |
| string | ❌ | Image description, will be sent as a separate message |
💡 Tip: For simple image sending, it is recommended to use thetag, which is more concise and easy to use.<qqimg>
| Scenario | Usage |
|---|---|
| Send local image | |
| Send online image | |
| Send multiple images | Multiple |
| Inform path (do not send) | Write path text directly |