-
Notifications
You must be signed in to change notification settings - Fork 0
/
paginated.go
39 lines (34 loc) · 996 Bytes
/
paginated.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package tdproto
// Paginated chats
type PaginatedChats struct {
Contacts []Contact `json:"contacts,omitempty"`
Objects []Chat `json:"objects"`
Count int `json:"count"`
Limit int `json:"limit"`
Offset int `json:"offset"`
}
// Paginated messages
type PaginatedMessages struct {
Objects []Message `json:"objects"`
Count int `json:"count"`
Limit int `json:"limit"`
Offset int `json:"offset"`
}
// Paginated contacts
type PaginatedContacts struct {
Objects []Contact `json:"objects"`
Count int `json:"count"`
Limit int `json:"limit"`
Offset int `json:"offset"`
}
// Chat messages
type ChatMessages struct {
Messages []Message `json:"messages"`
}
// Paginated UploadShortMessage
type PaginatedUploadShortMessages struct {
Objects []UploadShortMessage `json:"objects"`
Count int `json:"count"`
Limit int `json:"limit"`
Offset int `json:"offset"`
}