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

     1  package tdapi
     2  
     3  import "github.com/tada-team/tdproto"
     4  
     5  // Group members
     6  type GroupMembers struct {
     7  	// Group members lust
     8  	Members []tdproto.GroupMembership `json:"members"`
     9  }
    10  
    11  // Group form
    12  type Group struct {
    13  	// Group title
    14  	DisplayName string `json:"display_name"`
    15  
    16  	// Group description, optional
    17  	Description string `json:"description"`
    18  
    19  	// Readonly for non-admins group chat (Like Channels in Telegram bug switchable)
    20  	ReadonlyForMembers bool `json:"readonly_for_members"`
    21  
    22  	// Is task or group public for non-guests
    23  	Public bool `json:"public"`
    24  
    25  	// Any new team member will be added to this group chat
    26  	DefaultForAll bool `json:"default_for_all"`
    27  
    28  	// Delete messages in this chat in seconds. Experimental function
    29  	AutocleanupAge *int `json:"autocleanup_age"`
    30  
    31  	// Pinned message for this group
    32  	PinnedMessage string `json:"pinned_message"`
    33  
    34  	// Group members list
    35  	Members []tdproto.GroupMembership `json:"members"`
    36  
    37  	// Deprecated
    38  	Section string `json:"section"`
    39  }