Skip to content

Commit

Permalink
fix: groupfile file_size
Browse files Browse the repository at this point in the history
  • Loading branch information
MliKiowa committed Jan 13, 2025
1 parent 0e9044e commit 7f3dbe0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/onebot/helper/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions src/onebot/types/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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; // 文件名称
Expand Down

0 comments on commit 7f3dbe0

Please sign in to comment.