feat(api): publish message history direction

Expose reverse_order in the SDK request types and regenerate the MCP action catalog for group and private message history.

Describe the anchored older-or-newer semantics and retain true as the backward-compatible default for existing clients.

Refs #229
This commit is contained in:
DrSmoothl committed 2026-07-17 17:45:35 +08:00
1 parent fadc7ce316
commit 1568942ae6
3 files changed
+62

No files matched your search

+2
View File
@@ -194,6 +194,8 @@ export interface SetGroupReactionParams extends JsonObject {
export interface GetMessageHistoryParams extends JsonObject {
message_id?: number;
count?: number;
/** With a non-zero message_id, include the anchor and query older (`true`) or newer (`false`) messages. Defaults to `true`. */
reverse_order?: boolean;
}
export interface GetGroupMessageHistoryParams extends GroupIdParams, GetMessageHistoryParams {}