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

29
test/testutil/fixtures.go Normal file
View File

@@ -0,0 +1,29 @@
package testutil
import (
"time"
"github.com/paramah/gw_telegram/internal/domain/entity"
)
func NewTextMessage(chatID, userID int64, text string) entity.Message {
return entity.Message{
MessageID: 1,
ChatID: chatID,
UserID: userID,
Username: "testuser",
Type: entity.MessageTypeText,
Text: text,
Timestamp: time.Now(),
Metadata: make(map[string]any),
}
}
func NewSession(userID, chatID int64) entity.Session {
return entity.Session{
UserID: userID,
ChatID: chatID,
Data: make(map[string]any),
UpdatedAt: time.Now(),
TTL: 24,
}
}