fix: self nickname

fix: auto download receive image
fix: @member msg report
ver: 3.0.1
This commit is contained in:
linyuchen
2024-02-13 13:12:16 +08:00
parent 64c4798117
commit 6a8d67a8ae
5 changed files with 95 additions and 46 deletions

View File

@@ -167,6 +167,19 @@ export interface ArkElement {
bytesData: string;
}
export const IMAGE_HTTP_HOST = "https://gchat.qpic.cn"
export interface PicElement {
originImageUrl: string; // http url, 没有hosthost是https://gchat.qpic.cn/
sourcePath: string; // 图片本地路径
thumbPath: Map<number, string>;
picWidth: number;
picHeight: number;
fileSize: number;
fileName: string;
fileUuid: string;
}
export interface RawMessage {
msgId: string;
msgTime: string;
@@ -178,6 +191,7 @@ export interface RawMessage {
sendMemberName?: string; // 发送者群名片
chatType: ChatType;
elements: {
elementId: string,
replyElement: {
senderUid: string; // 原消息发送者QQ号
sourceMsgIsIncPic: boolean; // 原消息是否有图片
@@ -186,18 +200,11 @@ export interface RawMessage {
};
textElement: {
atType: AtType;
atUid: string;
atUid: string; // QQ号
content: string;
atNtUid: string;
};
picElement: {
sourcePath: string; // 图片本地路径
picWidth: number;
picHeight: number;
fileSize: number;
fileName: string;
fileUuid: string;
atNtUid: string; // uid号
};
picElement: PicElement;
pttElement: PttElement;
arkElement: ArkElement;
}[];