feat: support modifying existing group announcements via _send_group_notice#1769
Draft
feat: support modifying existing group announcements via _send_group_notice#1769
_send_group_notice#1769Conversation
…p announcements Agent-Logs-Url: https://github.com/NapNeko/NapCatQQ/sessions/48efa5c6-fa12-43fa-83b3-e59d388af37e Co-authored-by: sj817 <74231782+sj817@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add feature to modify group announcement
feat: support modifying existing group announcements via Apr 15, 2026
_send_group_notice
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Every announcement update created a new entry, with no way to edit an existing one. This adds an optional
notice_idfield to_send_group_notice— when provided, the request includesfidin the QQ web API call, causing the server to update the existing announcement in-place.Changes
webapi.ts—setGroupNoticeaccepts an optionalnoticeIdparameter; when non-empty, passes it asfidtoadd_qun_noticeSendGroupNotice.ts— adds optionalnotice_idto the payload schema; forwards it tosetGroupNoticeUsage
Obtain the
notice_idfrom_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_idpreserves the existing behaviour (creates a new announcement).