feat: initial commit

This commit is contained in:
2026-04-16 19:39:02 +02:00
commit 50d1686b1e
44 changed files with 2089 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
package entity
import "time"
type MessageType string
const (
MessageTypeText MessageType = "text"
MessageTypeVoice MessageType = "voice"
)
type Message struct {
MessageID int64
ChatID int64
UserID int64
Username string
Type MessageType
Text string
VoiceFileID string
Timestamp time.Time
Metadata map[string]any
}
type VoiceMessage struct {
FileID string
Duration int
MimeType string
FileSize int
}