mirror of
https://github.com/HugeFrog24/go-telegram-bot.git
synced 2026-06-29 22:07:12 +00:00
Support for images
This commit is contained in:
@@ -42,6 +42,14 @@ type Message struct {
|
||||
StickerEmoji string // Store the emoji associated with the sticker
|
||||
DeletedAt gorm.DeletedAt `gorm:"index"` // Add soft delete field
|
||||
AnsweredOn *time.Time `gorm:"index"` // Tracks when a user message was answered (NULL for assistant messages and unanswered user messages)
|
||||
// ImageFileIDs holds Anthropic Files API file_ids for photos attached to this turn.
|
||||
// Plural for albums (Telegram media_group), single-element for one photo.
|
||||
ImageFileIDs []string `gorm:"type:text;serializer:json"`
|
||||
// FilesCleanedAt is set after a cleanup job deletes the corresponding files from
|
||||
// Anthropic's side. NULL means files are still alive on Anthropic.
|
||||
// Combined with DeletedAt this lets a reconciliation job find rows whose files
|
||||
// are pending cleanup vs rows whose files have already been removed.
|
||||
FilesCleanedAt *time.Time `gorm:"index"`
|
||||
}
|
||||
|
||||
type ChatMemory struct {
|
||||
|
||||
Reference in New Issue
Block a user