From 7f3dbe055217d668e12117ebf37d107db38e2e34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Mon, 13 Jan 2025 19:38:29 +0800 Subject: [PATCH] fix: groupfile file_size --- src/onebot/helper/data.ts | 1 + src/onebot/types/data.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/onebot/helper/data.ts b/src/onebot/helper/data.ts index 34a5cf459..29409c4d3 100644 --- a/src/onebot/helper/data.ts +++ b/src/onebot/helper/data.ts @@ -90,6 +90,7 @@ export class OB11Construct { file_name: file.fileName, busid: file.busId, size: +file.fileSize, + file_size: +file.fileSize, upload_time: file.uploadTime, dead_time: file.deadTime, modify_time: file.modifyTime, diff --git a/src/onebot/types/data.ts b/src/onebot/types/data.ts index 8b3acab21..5a6a972e6 100644 --- a/src/onebot/types/data.ts +++ b/src/onebot/types/data.ts @@ -75,6 +75,7 @@ export interface OB11Sender { } export interface OB11GroupFile { + file_size: number; // 文件大小 GOCQHTTP 群文件Api扩展 group_id: number; // 群ID file_id: string; // 文件ID file_name: string; // 文件名称