@lansenger-pm/openclaw-lansenger-channel 3.4.1 → 3.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -76,7 +76,7 @@ Need to send something? Follow this decision tree:
|
|
|
76
76
|
1. Normal reply with formatting → JUST WRITE IT. No tool needed.
|
|
77
77
|
2. Markdown + @mention → `lansenger_send_format_text` or `lansenger message send-markdown`
|
|
78
78
|
3. Plain text + @mention + file → `lansenger_send_text` or `lansenger message send-text`
|
|
79
|
-
4. Send a FILE → **`message(action=send, filePath=<path>)`** (always available, no extra permissions needed) or `lansenger_send_file` or `lansenger message send-file`
|
|
79
|
+
4. Send a FILE → **`message(action=send, filePath=<path>)`** (always available, no extra permissions needed, any file type) or `lansenger_send_file` or `lansenger message send-file`
|
|
80
80
|
5. Send image from URL → `lansenger_send_image_url` or `lansenger message send-image-url`
|
|
81
81
|
6. Link card → `lansenger_send_link_card` or `lansenger message send-link-card`
|
|
82
82
|
7. Multi-article card (图文) → `lansenger_send_app_articles` or `lansenger message send-app-articles`
|
|
@@ -302,6 +302,34 @@ Status colors: #FFB116 (pending), #198754 (approved), #dc3545 (denied)
|
|
|
302
302
|
| card | Contact card with staffId |
|
|
303
303
|
| sticker | Sticker/emoji message |
|
|
304
304
|
|
|
305
|
+
## File Delivery: MEDIA: Tags vs. message Tool
|
|
306
|
+
|
|
307
|
+
OpenClaw's `MEDIA:` tag mechanism has a **MIME whitelist** — only these file types can be delivered via MEDIA: tags:
|
|
308
|
+
|
|
309
|
+
| Allowed by MEDIA: | Examples |
|
|
310
|
+
|---------------------------------|-----------------------------------------------|
|
|
311
|
+
| Images (image/*) | .png, .jpg, .gif, .bmp, .webp, .svg |
|
|
312
|
+
| Audio (audio/*) | .mp3, .wav, .ogg, .m4a |
|
|
313
|
+
| Video (video/*) | .mp4, .mov, .avi, .mkv |
|
|
314
|
+
| PDF | .pdf |
|
|
315
|
+
| Office documents | .doc, .xls, .ppt, .docx, .xlsx, .pptx |
|
|
316
|
+
| Archives | .zip, .gzip, .7z, .tar |
|
|
317
|
+
| CSV | .csv |
|
|
318
|
+
| Markdown | .md |
|
|
319
|
+
|
|
320
|
+
**All other file types are BLOCKED by MEDIA: tags** and produce "⚠️ Media failed." in the reply. Specifically:
|
|
321
|
+
|
|
322
|
+
| Blocked by MEDIA: | Examples |
|
|
323
|
+
|-------------------|----------|
|
|
324
|
+
| Plain text | .txt |
|
|
325
|
+
| JSON | .json |
|
|
326
|
+
| Code/config | .py, .js, .ts, .yaml, .xml, .toml, .ini, .cfg, .conf |
|
|
327
|
+
| Data | .db, .sql, .parquet |
|
|
328
|
+
| Executables | .exe, .sh, .bat |
|
|
329
|
+
| Other binary | .bin, .dat, .so, .dll |
|
|
330
|
+
|
|
331
|
+
**To send blocked file types, use `message(action=send, filePath=<path>)`** — it bypasses the MEDIA whitelist and uploads any file type directly via the Lansenger API. You can also rename the file to `.md` (wrapping content in a Markdown code block) to make it MEDIA-compatible.
|
|
332
|
+
|
|
305
333
|
## Common Pitfalls
|
|
306
334
|
|
|
307
335
|
| Pitfall | Fix |
|