github.com/tada-team/tdproto@v1.51.57/paginated.go (about)

     1  package tdproto
     2  
     3  // Paginated chats
     4  type PaginatedChats struct {
     5  	Contacts []Contact `json:"contacts,omitempty"`
     6  	Objects  []Chat    `json:"objects"`
     7  	Count    int       `json:"count"`
     8  	Limit    int       `json:"limit"`
     9  	Offset   int       `json:"offset"`
    10  }
    11  
    12  // Paginated messages
    13  type PaginatedMessages struct {
    14  	Objects []Message `json:"objects"`
    15  	Count   int       `json:"count"`
    16  	Limit   int       `json:"limit"`
    17  	Offset  int       `json:"offset"`
    18  }
    19  
    20  // Paginated contacts
    21  type PaginatedContacts struct {
    22  	Objects []Contact `json:"objects"`
    23  	Count   int       `json:"count"`
    24  	Limit   int       `json:"limit"`
    25  	Offset  int       `json:"offset"`
    26  }
    27  
    28  // Chat messages
    29  type ChatMessages struct {
    30  	Messages []Message `json:"messages"`
    31  }
    32  
    33  // Paginated UploadShortMessage
    34  type PaginatedUploadShortMessages struct {
    35  	Objects []UploadShortMessage `json:"objects"`
    36  	Count   int                  `json:"count"`
    37  	Limit   int                  `json:"limit"`
    38  	Offset  int                  `json:"offset"`
    39  }
    40  
    41  // Paginated meetings
    42  type PaginatedMeetings struct {
    43  	Objects []Meeting `json:"objects"`
    44  	Count   int       `json:"count"`
    45  	Limit   int       `json:"limit"`
    46  	Offset  int       `json:"offset"`
    47  }
    48  
    49  // Paginated billing enquirires
    50  type PaginatedBillingEnquiries struct {
    51  	Objects []Enquiry `json:"objects"`
    52  	Count   int       `json:"count"`
    53  	Limit   int       `json:"limit"`
    54  	Offset  int       `json:"offset"`
    55  }