feat(history): establish Telegram SaaS platform foundation

This commit is contained in:
wmq
2026-07-27 23:03:00 +08:00
parent cf0eed46c3
commit cd06d049fe
92 changed files with 5608 additions and 3749 deletions
+9
View File
@@ -28,6 +28,8 @@ export interface Message {
type: MessageType
originalText: string
translatedText?: string
translationStatus?: 'pending' | 'completed' | 'failed'
translatedAt?: string
originalLang: string
status: MessageStatus
createdAt: string
@@ -35,6 +37,12 @@ export interface Message {
internalNote?: string
attachmentName?: string
productCard?: { name: string; sku: string; price: string }
replyToId?: string
replyPreview?: string
telegramFileId?: number
attachmentMimeType?: string
attachmentSize?: number
stickerEmoji?: string
}
export interface Conversation {
@@ -80,6 +88,7 @@ export interface ChannelSyncLog {
export interface SendMessagePayload {
text: string
replyToId?: string
replyPreview?: string
type?: MessageType
attachmentName?: string
}