feat(onebot): support replies to Qzone comments

Add threaded text replies while preserving existing comments and image
uploads. Include parent references and update SDK and MCP contracts.
Reject incomplete targets and unsupported reply images before sending.

Fixes #573
This commit is contained in:
DrSmoothl committed 2026-10-24 21:54:38 +08:00
1 parent dc2d60e57f
commit d95d3bf761
14 files changed
+892 -16

No files matched your search

+10
View File
@@ -606,7 +606,17 @@ export interface LikeQzoneParams extends QzoneMsgIdParams {
export interface CommentQzoneParams extends QzoneMsgIdParams {
content: ActionStringInput;
/** Post owner, not the author being replied to. Defaults to the current account. */
target_uin?: ActionNumberInput;
/** Top-level parent ID, including "0". Requires comment_uin; omit for an ordinary comment. */
comment_id?: ActionStringInput;
/** Parent comment author from get_qzone_msg_detail. Requires comment_id. */
comment_uin?: ActionNumberInput;
/** Author to address inside the parent thread. Requires reply_name and a parent comment. */
reply_uin?: ActionNumberInput;
/** Addressed author's name from comment details. Requires reply_uin. */
reply_name?: ActionStringInput;
/** Ordinary comments only; non-empty images with comment_id are rejected before upload. */
images?: ActionStringInput[];
}
+7 -1
View File
@@ -8,6 +8,9 @@ export interface QzoneCommentReply {
content: string;
/** Scoped to the post, or parent comment for replies. */
comment_id: string;
/** Present on nested replies from newer servers; identifies their top-level parent. */
parent_comment_id?: string;
parent_comment_uin?: number;
}
export interface QzoneComment extends QzoneCommentReply {
@@ -413,8 +416,11 @@ export interface QzonePublishResult extends JsonObject {
}
export interface QzoneCommentResult extends JsonObject {
/** Empty string when the upstream response omits the new comment ID. */
/** New comment/reply ID. Ordinary comments may return an empty string if upstream omits it. */
comment_id: string;
/** Present when creating a nested reply, distinct from its new comment_id. */
parent_comment_id?: string;
parent_comment_uin?: number;
}
export interface QzoneUpdateRightResult extends JsonObject {