feat: 重命名群文件

This commit is contained in:
Clansty committed 2025-04-08 05:14:53 +08:00
1 parent 4180c2d754
commit 31eb09edef
7 files changed
+81 -2

No files matched your search

@@ -161,6 +161,13 @@ export class PacketOperationContext {
return res.move.retCode;
}
async RenameGroupFile(groupUin: number, fileUUID: string, currentParentDirectory: string, newName: string) {
const req = trans.RenameGroupFile.build(groupUin, fileUUID, currentParentDirectory, newName);
const resp = await this.context.client.sendOidbPacket(req, true);
const res = trans.RenameGroupFile.parse(resp);
return res.rename.retCode;
}
async GetGroupFileUrl(groupUin: number, fileUUID: string) {
const req = trans.DownloadGroupFile.build(groupUin, fileUUID);
const resp = await this.context.client.sendOidbPacket(req, true);