download
Download media attachments from messages.
Usage
openkakao-rs download <chat_id> <log_id> [OPTIONS]Options
| Flag | Description | Default |
|---|---|---|
-o, --output-dir <DIR> | Output directory | downloads |
Example
# Download media from a specific message
openkakao-rs download 382416827148557 3791234519888541698
# Custom directory
openkakao-rs download 382416827148557 3791234519888541698 -o ./mediaFiles are saved as {output_dir}/{chat_id}/{log_id}_{filename}.
Finding the log_id
The log_id is shown in JSON output:
openkakao-rs read <chat_id> --json | jq '.[] | select(.type != 1) | {logId, type, message}'Auto-Download
For automatic media download, use the watch command:
openkakao-rs watch --download-media --download-dir ./mediaSee watch for details.