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

     1  package tdapi
     2  
     3  import "github.com/tada-team/tdproto"
     4  
     5  type Team struct {
     6  	// Team name
     7  	Name string `json:"name"`
     8  
     9  	// Default task deadline
    10  	DefaultTaskDeadline string `json:"default_task_deadline"`
    11  
    12  	// Max message update/deletion age, in seconds
    13  	MaxMessageUpdateAge interface{} `json:"max_message_update_age"`
    14  
    15  	// Patronymic in usernames for this team
    16  	UsePatronymic bool `json:"use_patronymic"`
    17  
    18  	// Family name should be first in display name
    19  	DisplayFamilyNameFirst bool `json:"display_family_name_first"`
    20  
    21  	// Use importance field in task
    22  	UseTaskImportance bool `json:"use_task_importance"`
    23  
    24  	// Reverse importance
    25  	TaskImportanceRev bool `json:"task_importance_rev"`
    26  
    27  	// Use urgency field in task
    28  	UseTaskUrgency bool `json:"use_task_urgency"`
    29  
    30  	// Use complexity field in task
    31  	UseTaskComplexity bool `json:"use_task_complexity"`
    32  
    33  	// Use spent time field in task
    34  	UseTaskSpentTime bool `json:"use_task_spent_time"`
    35  
    36  	// Is singlegroup (for creation only)
    37  	SingleGroup bool `json:"single_group"`
    38  
    39  	// Team pinned
    40  	Pinned bool `json:"pinned,omitempty"`
    41  
    42  	// Contacts (for creation only)
    43  	Contacts []Contact `json:"contacts"`
    44  }
    45  
    46  // Invitation information
    47  type TeamPrejoinInfo struct {
    48  	// Short team information
    49  	Team tdproto.TeamShort `json:"team"`
    50  }
    51  
    52  // Team confirmation
    53  type TeamConfirmation struct {
    54  	// Need confirmation after invite to this team
    55  	NeedConfirmation bool `json:"need_confirmation" tdproto:"readonly"`
    56  }