feat(core,onebot): implement trans_group_file action (#161)

This commit is contained in:
Airline233 authored and GitHub committed 2026-07-01 02:13:35 +08:00
1 parent 2f374ea8c9
commit 9ca64bed10
11 files changed
+260 -10

No files matched your search

+9 -4
View File
@@ -1636,10 +1636,15 @@ export const actions = [
defineAction({
name: 'trans_group_file',
summary: '转存群文件(未实现)',
params: {},
run: async () => {
return failedResponse(RETCODE.ACTION_FAILED, 'not yet implemented');
summary: '转存群文件',
returns: '{ ok: true }',
params: {
group_id: f.uint(),
file_id: f.string({ allowEmpty: false }),
},
run: async (p, ctx) => {
await ctx.bridge.apis.groupFile.trans(p.group_id, p.file_id);
return okResponse({ ok: true });
},
}),