feat(onebot): include download urls on group notice images
_get_group_notice already returned picture ids. Add a fetchable url on each image so callers do not need a separate action. Fixes #440
This commit is contained in:
8 files changed
+39
-9
No files matched your search
@@ -726,7 +726,7 @@ export const actions = [
|
||||
groupAction({
|
||||
name: '_get_group_notice',
|
||||
summary: '获取群公告',
|
||||
returns: '普通公告与新成员公告的合并数组;send_to_new_members 标识后者',
|
||||
returns: '普通公告与新成员公告的合并数组;send_to_new_members 标识后者;图片含 id、url、宽高',
|
||||
readOnly: true,
|
||||
run: async (p, ctx) => {
|
||||
const notices = await ctx.bridge.apis.web.getNotice(p.group_id);
|
||||
|
||||
Reference in new issue
Block a user