Skip to content

feat: support modifying existing group announcements via _send_group_notice#1769

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/add-modify-group-announcement-feature
Draft

feat: support modifying existing group announcements via _send_group_notice#1769
Copilot wants to merge 2 commits intomainfrom
copilot/add-modify-group-announcement-feature

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 15, 2026

Every announcement update created a new entry, with no way to edit an existing one. This adds an optional notice_id field to _send_group_notice — when provided, the request includes fid in the QQ web API call, causing the server to update the existing announcement in-place.

Changes

  • webapi.tssetGroupNotice accepts an optional noticeId parameter; when non-empty, passes it as fid to add_qun_notice
  • SendGroupNotice.ts — adds optional notice_id to the payload schema; forwards it to setGroupNotice

Usage

Obtain the notice_id from _get_group_notice, then pass it to update:

{
  "action": "_send_group_notice",
  "params": {
    "group_id": "123456",
    "content": "Updated content",
    "notice_id": "<fid from _get_group_notice>"
  }
}

Omitting notice_id preserves the existing behaviour (creates a new announcement).

Copilot AI linked an issue Apr 15, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Add feature to modify group announcement feat: support modifying existing group announcements via _send_group_notice Apr 15, 2026
Copilot AI requested a review from sj817 April 15, 2026 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT] 能否增加一个修改群公告的功能

2 participants