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:
DrSmoothl committed 2026-09-13 21:25:59 +08:00
1 parent 201d10c534
commit 7ef256c487
8 files changed
+39 -9

No files matched your search

+1 -1
View File
@@ -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);