get_group_files_by_folder

get_group_files_by_folder只读群文件
获取群子目录文件列表

Call via POST http://127.0.0.1:3000/get_group_files_by_folder (JSON params as the body) or WebSocket.

Parameters

Param Type Required Default Description
group_id uint 群号
folder_id string ""
folder string ""

Returns (data)

群文件系统信息(文件与文件夹列表)。

Every response is wrapped in the standard envelope: { "status": "ok", "retcode": 0, "data": ... }. The table below describes data.

Field Type Required Description
files object[] 文件列表
folders object[] 文件夹列表
Raw JSON Schema
{
  "type": "object",
  "properties": {
    "files": {
      "type": "array",
      "description": "文件列表",
      "items": {
        "type": "object",
        "properties": {
          "group_id": {
            "type": "integer",
            "description": "群号"
          },
          "file_id": {
            "type": "string",
            "description": "文件 ID"
          },
          "file_name": {
            "type": "string",
            "description": "文件名"
          },
          "busid": {
            "type": "integer",
            "description": "业务 ID"
          },
          "file_size": {
            "type": "integer",
            "description": "文件大小(字节)"
          },
          "upload_time": {
            "type": "integer",
            "description": "上传时间戳"
          },
          "dead_time": {
            "type": "integer",
            "description": "过期时间戳"
          },
          "modify_time": {
            "type": "integer",
            "description": "修改时间戳"
          },
          "download_times": {
            "type": "integer",
            "description": "下载次数"
          },
          "uploader": {
            "type": "integer",
            "description": "上传者 QQ 号"
          },
          "uploader_name": {
            "type": "string",
            "description": "上传者昵称"
          }
        }
      }
    },
    "folders": {
      "type": "array",
      "description": "文件夹列表",
      "items": {
        "type": "object",
        "properties": {
          "group_id": {
            "type": "integer",
            "description": "群号"
          },
          "folder_id": {
            "type": "string",
            "description": "文件夹 ID"
          },
          "folder_name": {
            "type": "string",
            "description": "文件夹名"
          },
          "create_time": {
            "type": "integer",
            "description": "创建时间戳"
          },
          "creator": {
            "type": "integer",
            "description": "创建者 QQ 号"
          },
          "create_name": {
            "type": "string",
            "description": "创建者昵称"
          },
          "total_file_count": {
            "type": "integer",
            "description": "文件夹内文件总数"
          }
        }
      }
    }
  },
  "required": [
    "files",
    "folders"
  ]
}

Examples

curl
Python
JavaScript
Go
SnowLuma SDK
curl -X POST http://127.0.0.1:3000/get_group_files_by_folder \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <access-token>' \
  -d '{"group_id":123456,"folder_id":"","folder":""}'
Using an AI assistant?

MCP-capable clients can discover and call this action directly — no hand-written HTTP. See MCP.