Change variable type for list of chats (#101)

This commit is contained in:
Pireirik
2024-09-08 18:39:20 +02:00
committed by GitHub
parent 090b2afb63
commit ccd3610c76
2 changed files with 4 additions and 4 deletions

View File

@@ -53,10 +53,10 @@ type ListChatsChat struct {
Chat ListChatsChatData `json:"chat"` Chat ListChatsChatData `json:"chat"`
// Identifier of the first unread chat message // Identifier of the first unread chat message
FirstUnreadMessageId string `json:"first_unread_message_id"` FirstUnreadMessageId uint64 `json:"first_unread_message_id"`
// Identifier of the last message in the chat // Identifier of the last message in the chat
LastMessageId string `json:"last_message_id"` LastMessageId uint64 `json:"last_message_id"`
// Number of unread messages in the chat // Number of unread messages in the chat
UnreadCount int64 `json:"unread_count"` UnreadCount int64 `json:"unread_count"`

View File

@@ -38,8 +38,8 @@ func TestListChats(t *testing.T) {
"chat_status": "Opened", "chat_status": "Opened",
"chat_type": "Seller_Support" "chat_type": "Seller_Support"
}, },
"first_unread_message_id": "3000000000118021931", "first_unread_message_id": 3000000000118021931,
"last_message_id": "30000000001280042740", "last_message_id": 3000000000128004274,
"unread_count": 1 "unread_count": 1
} }
], ],