storage: persist message attachments and user AI settings
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
export type StoredAttachmentKind = "image" | "document" | "audio" | "video" | "video-note";
|
||||
|
||||
export type StoredAttachment = {
|
||||
kind: StoredAttachmentKind;
|
||||
fileId: string;
|
||||
fileUniqueId?: string;
|
||||
fileName: string;
|
||||
mimeType?: string;
|
||||
cachePath: string;
|
||||
};
|
||||
|
||||
@@ -1,9 +1,13 @@
|
||||
import {StoredAttachment} from "./stored-attachment";
|
||||
|
||||
export type StoredMessage = {
|
||||
chatId: number;
|
||||
id: number;
|
||||
replyToMessageId?: number;
|
||||
fromId: number;
|
||||
text?: string | null;
|
||||
quoteText?: string | null;
|
||||
date: number;
|
||||
photoMaxSizeFilePath?: string[] | null;
|
||||
};
|
||||
attachments?: StoredAttachment[] | null;
|
||||
};
|
||||
|
||||
@@ -2,7 +2,13 @@ export type StoredUser = {
|
||||
id: number;
|
||||
isBot: boolean;
|
||||
firstName: string;
|
||||
lastName?: string | null;
|
||||
userName?: string | null;
|
||||
lastName?: string;
|
||||
userName?: string;
|
||||
isPremium?: boolean;
|
||||
}
|
||||
langCode?: string;
|
||||
interfaceLanguage?: string;
|
||||
aiProvider?: string;
|
||||
aiResponseLanguage?: string;
|
||||
aiContextSize?: number;
|
||||
aiVoiceMode?: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user