new error codes, code refactor, added getMessages function

This commit is contained in:
slawk0
2025-02-07 22:59:36 +01:00
parent 51b426ba54
commit 7342c5b483
9 changed files with 189 additions and 31 deletions

View File

@@ -25,3 +25,11 @@ type Contact struct {
type ContactSuggestion struct {
Username string `json:"username"`
}
type Message struct {
MessageID int `json:"message_id"`
Message string `json:"message"`
SentAt string `json:"sent_at"`
Sender string `json:"sender"`
AttachmentUrl string `json:"attachment_url"`
}