github.com/tada-team/tdproto@v1.51.57/team.go (about) 1 package tdproto 2 3 // Team 4 type Team struct { 5 // Team id 6 Uid string `json:"uid" tdproto:"readonly"` 7 8 // Team deleted 9 IsArchive bool `json:"is_archive,omitempty" tdproto:"readonly"` 10 11 // Object version 12 Gentime int64 `json:"gentime" tdproto:"readonly"` 13 14 // Team name 15 Name string `json:"name"` 16 17 // Default task deadline 18 DefaultTaskDeadline string `json:"default_task_deadline,omitempty"` 19 20 // Max message update/deletion age, in seconds 21 MaxMessageUpdateAge int `json:"max_message_update_age"` 22 23 // Team icons 24 Icons IconData `json:"icons" tdproto:"readonly"` 25 26 // User last activity was in this team 27 LastActive bool `json:"last_active" tdproto:"readonly"` 28 29 // What status I can set to other team members 30 ChangeableStatuses []TeamStatus `json:"changeable_statuses,omitempty" tdproto:"readonly"` 31 32 // My profile in this team isn't full 33 BadProfile bool `json:"bad_profile,omitempty" tdproto:"readonly"` 34 35 // Need confirmation after invite to this team 36 NeedConfirmation bool `json:"need_confirmation" tdproto:"readonly"` 37 38 // Patronymic in usernames for this team 39 UsePatronymic bool `json:"use_patronymic,omitempty"` 40 41 // Username fields ordering. Possible values: "family_name", "given_name", "patronymic" 42 UserFields []string `json:"user_fields" tdproto:"readonly"` 43 44 // Family name should be first in display name 45 DisplayFamilyNameFirst bool `json:"display_family_name_first,omitempty"` 46 47 // Use importance field in task 48 UseTaskImportance bool `json:"use_task_importance,omitempty"` 49 50 // Minimal value of task importance. Default is 1 51 TaskImportanceMin int `json:"task_importance_min,omitempty"` 52 53 // Maximum value of task importance. Default is 5 54 TaskImportanceMax int `json:"task_importance_max,omitempty"` 55 56 // Bigger number = bigger importance. Default: lower number = bigger importance 57 TaskImportanceRev bool `json:"task_importance_rev,omitempty"` 58 59 // Use urgency field in task 60 UseTaskUrgency bool `json:"use_task_urgency,omitempty"` 61 62 // Use complexity field in task 63 UseTaskComplexity bool `json:"use_task_complexity,omitempty"` 64 65 // Use spent time field in task 66 UseTaskSpentTime bool `json:"use_task_spent_time,omitempty"` 67 68 // Total uploads size, bytes 69 UploadsSize int64 `json:"uploads_size,omitempty" tdproto:"readonly"` 70 71 // Maximum uploads size, bytes, if any 72 UploadsSizeLimit int64 `json:"uploads_size_limit,omitempty" tdproto:"readonly"` 73 74 // Unread message counters 75 Unreads *TeamUnread `json:"unread"` 76 77 // My profile in this team 78 Me Contact `json:"me"` 79 80 // Team contacts. Used only for team creation 81 Contacts []Contact `json:"contacts,omitempty" tdproto:"readonly"` 82 83 // For single group teams, jid of chat 84 SingleGroup JID `json:"single_group,omitempty" tdproto:"readonly"` 85 86 // Color theme, if any 87 Theme *Theme `json:"theme,omitempty" tdproto:"readonly"` 88 89 // Don't show archived users by default 90 HideArchivedUsers bool `json:"hide_archived_users,omitempty"` 91 92 // Team pinned 93 Pinned bool `json:"pinned,omitempty"` 94 95 // Sort ordering for pinned team 96 PinnedSortOrdering int `json:"pinned_sort_ordering,omitempty"` 97 98 // Team's available tariff by includig archive ones 99 AvailableTariffs []string `json:"available_tariffs,omitempty"` 100 101 // Сurrent team subscription 102 Subscription Subscription `json:"subscription,omitempty"` 103 104 // Сurrent team favorites bot, jid of chat 105 Notebot JID `json:"notebot,omitempty" tdproto:"readonly"` 106 107 // Personal account status for current team 108 AccountStatus PersonalAccountStatus `json:"account_status" tdproto:"readonly"` 109 110 // Team owner 111 Owner Contact `json:"owner,omitempty"` 112 } 113 114 // Short team representation. For invites, push notifications, etc. Readonly. 115 type TeamShort struct { 116 // Team id 117 Uid string `json:"uid"` 118 119 // Team name 120 Name string `json:"name"` 121 122 // Team icons 123 Icons IconData `json:"icons"` 124 } 125 126 // Team deletion message. Readonly. 127 type DeletedTeam struct { 128 // Team id 129 Uid string `json:"uid"` 130 131 // Team deleted 132 IsArchive bool `json:"is_archive"` 133 134 // Object version 135 Gentime int64 `json:"gentime"` 136 } 137 138 type GetTeamsFilter struct { 139 Status TeamStatus `json:"status,omitempty"` 140 }