github.com/tada-team/tdproto@v1.51.57/task_preview.go (about) 1 package tdproto 2 3 import ( 4 "time" 5 ) 6 7 // Task Preview 8 type TaskPreview struct { 9 Error string `json:"_error,omitempty"` 10 Assignee JID `json:"assignee"` 11 Deadline *time.Time `json:"deadline"` 12 Description string `json:"description"` 13 Section string `json:"section"` 14 Public bool `json:"public"` 15 Tags []string `json:"tags"` 16 Items []TaskItems `json:"items"` 17 } 18 19 // Task item 20 type TaskItems struct { 21 Name string `json:"name"` 22 Checked bool `json:"checked"` 23 }