feat(onebot): delete group album videos by video id
del_group_album_media accepts a photo id or a video id in lloc. Fixes #384
This commit is contained in:
3 files changed
+12
-5
No files matched your search
@@ -223,9 +223,10 @@ export const actions = [
|
||||
|
||||
groupAction({
|
||||
name: 'del_group_album_media',
|
||||
summary: '删除群相册图片或视频',
|
||||
params: {
|
||||
album_id: f.string({ allowEmpty: false }),
|
||||
lloc: f.string({ allowEmpty: false }),
|
||||
lloc: f.string({ allowEmpty: false }).describe('图片长定位标识,或视频 id'),
|
||||
},
|
||||
run: async (p, ctx) => {
|
||||
const res = await ctx.bridge.apis.groupAlbum.delete(p.group_id, p.album_id, p.lloc);
|
||||
|
||||
Reference in new issue
Block a user