feat(onebot): send saved custom faces with sticker presentation
Resolve saved stickers by resource ID or MD5, support group and private destinations with optional replies, and preserve presentation in upload and message metadata. Fixes #468
This commit is contained in:
12 files changed
+358
-31
No files matched your search
@@ -7,6 +7,7 @@ import type {
|
||||
DomainParams,
|
||||
DownloadFileParams,
|
||||
FetchCustomFaceParams,
|
||||
SendCustomFaceParams,
|
||||
FetchFaceEntityParams,
|
||||
FetchSysFacesParams,
|
||||
FetchEmojiLikeParams,
|
||||
@@ -211,6 +212,7 @@ export interface SnowLumaActionMap {
|
||||
get_recent_contact: { params: JsonObject; data: JsonArray };
|
||||
get_profile_like: { params: JsonObject; data: JsonObject };
|
||||
fetch_custom_face: { params: FetchCustomFaceParams; data: string[] };
|
||||
send_custom_face: { params: SendCustomFaceParams; data: SendMessageResult };
|
||||
fetch_sys_faces: { params: FetchSysFacesParams; data: SystemFaceCatalogInfo };
|
||||
fetch_face_entity: { params: FetchFaceEntityParams; data: SystemFaceInfo | null };
|
||||
search_sys_faces: { params: SearchSysFacesParams; data: SystemFaceSearchInfo };
|
||||
|
||||
@@ -310,6 +310,12 @@ export interface FetchCustomFaceParams extends JsonObject {
|
||||
count?: number;
|
||||
}
|
||||
|
||||
export type SendCustomFaceParams = JsonObject & {
|
||||
/** Saved sticker resource ID or its 32-character content MD5. */
|
||||
emoji_id: string;
|
||||
reply_to?: number;
|
||||
} & ({ group_id: number; user_id?: never } | { user_id: number; group_id?: never });
|
||||
|
||||
export interface FetchSysFacesParams extends JsonObject {
|
||||
refresh?: boolean;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user